home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / example / tutorial.tex < prev   
LaTeX Document  |  1992-09-22  |  15.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tutorial.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 0a 25 20 24 48 65 61 | 64 65 72 3a 20 2f 75 2f |%.% $Hea|der: /u/|
|00000010| 67 63 67 2f 6e 67 72 61 | 70 2f 73 72 63 2f 62 69 |gcg/ngra|p/src/bi|
|00000020| 6e 2f 65 78 61 6d 70 6c | 65 2f 52 43 53 2f 74 75 |n/exampl|e/RCS/tu|
|00000030| 74 6f 72 69 61 6c 2e 74 | 65 78 2c 76 20 31 2e 33 |torial.t|ex,v 1.3|
|00000040| 20 31 39 39 32 2f 30 39 | 2f 32 32 20 32 30 3a 35 | 1992/09|/22 20:5|
|00000050| 34 3a 32 36 20 6d 75 6e | 7a 6e 65 72 20 45 78 70 |4:26 mun|zner Exp|
|00000060| 20 24 0a 25 20 24 53 6f | 75 72 63 65 3a 20 2f 75 | $.% $So|urce: /u|
|00000070| 2f 67 63 67 2f 6e 67 72 | 61 70 2f 73 72 63 2f 62 |/gcg/ngr|ap/src/b|
|00000080| 69 6e 2f 65 78 61 6d 70 | 6c 65 2f 52 43 53 2f 74 |in/examp|le/RCS/t|
|00000090| 75 74 6f 72 69 61 6c 2e | 74 65 78 2c 76 20 24 0a |utorial.|tex,v $.|
|000000a0| 0a 25 20 54 68 69 73 20 | 69 73 20 61 20 4c 61 54 |.% This |is a LaT|
|000000b0| 65 58 20 64 6f 63 75 6d | 65 6e 74 2e 20 20 54 6f |eX docum|ent. To|
|000000c0| 20 70 72 69 6e 74 20 69 | 74 20 6f 75 74 2c 20 65 | print i|t out, e|
|000000d0| 6e 74 65 72 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |nter the| followi|
|000000e0| 6e 67 0a 25 20 63 6f 6d | 6d 61 6e 64 73 20 66 72 |ng.% com|mands fr|
|000000f0| 6f 6d 20 74 68 65 20 73 | 68 65 6c 6c 3a 20 0a 25 |om the s|hell: .%|
|00000100| 09 0a 25 09 6c 61 74 65 | 78 20 65 78 70 6c 61 69 |..%.late|x explai|
|00000110| 6e 0a 25 09 6c 70 72 20 | 2d 64 20 65 78 70 6c 61 |n.%.lpr |-d expla|
|00000120| 69 6e 2e 64 76 69 0a 25 | 0a 0a 25 20 24 4c 6f 67 |in.dvi.%|..% $Log|
|00000130| 3a 20 74 75 74 6f 72 69 | 61 6c 2e 74 65 78 2c 76 |: tutori|al.tex,v|
|00000140| 20 24 0a 25 20 52 65 76 | 69 73 69 6f 6e 20 31 2e | $.% Rev|ision 1.|
|00000150| 33 20 20 31 39 39 32 2f | 30 39 2f 32 32 20 20 32 |3 1992/|09/22 2|
|00000160| 30 3a 35 34 3a 32 36 20 | 20 6d 75 6e 7a 6e 65 72 |0:54:26 | munzner|
|00000170| 0a 25 20 65 78 70 61 6e | 64 20 6d 61 6b 65 66 69 |.% expan|d makefi|
|00000180| 6c 65 20 65 78 70 6c 61 | 6e 61 74 69 6f 6e 2e 0a |le expla|nation..|
|00000190| 25 20 66 69 78 20 74 79 | 70 6f 73 20 70 6f 69 6e |% fix ty|pos poin|
|000001a0| 74 65 64 20 6f 75 74 20 | 62 79 20 4f 6c 69 76 65 |ted out |by Olive|
|000001b0| 72 2e 0a 25 0a 25 20 52 | 65 76 69 73 69 6f 6e 20 |r..%.% R|evision |
|000001c0| 31 2e 32 20 20 31 39 39 | 32 2f 30 39 2f 30 34 20 |1.2 199|2/09/04 |
|000001d0| 20 32 33 3a 34 36 3a 34 | 30 20 20 6d 62 70 0a 25 | 23:46:4|0 mbp.%|
|000001e0| 20 63 68 61 6e 67 65 20 | 75 69 2d 65 6d 6f 74 69 | change |ui-emoti|
|000001f0| 6f 6e 2d 70 72 6f 67 72 | 61 6d 20 74 6f 20 65 6d |on-progr|am to em|
|00000200| 6f 64 75 6c 65 2d 64 65 | 66 69 6e 65 0a 25 0a 25 |odule-de|fine.%.%|
|00000210| 20 52 65 76 69 73 69 6f | 6e 20 31 2e 31 20 20 31 | Revisio|n 1.1 1|
|00000220| 39 39 32 2f 30 39 2f 30 | 34 20 20 32 33 3a 33 30 |992/09/0|4 23:30|
|00000230| 3a 32 30 20 20 67 75 6e | 6e 0a 25 20 49 6e 69 74 |:20 gun|n.% Init|
|00000240| 69 61 6c 20 72 65 76 69 | 73 69 6f 6e 0a 25 0a 25 |ial revi|sion.%.%|
|00000250| 20 52 65 76 69 73 69 6f | 6e 20 31 2e 39 20 20 39 | Revisio|n 1.9 9|
|00000260| 30 2f 30 34 2f 31 33 20 | 20 30 39 3a 31 37 3a 32 |0/04/13 | 09:17:2|
|00000270| 30 20 20 6d 65 75 65 72 | 0a 25 20 46 69 72 73 74 |0 meuer|.% First|
|00000280| 20 72 65 76 69 73 69 6f | 6e 20 61 66 74 65 72 20 | revisio|n after |
|00000290| 43 68 61 72 6c 69 65 20 | 68 61 73 20 61 64 64 65 |Charlie |has adde|
|000002a0| 64 20 73 74 75 66 66 20 | 74 6f 20 69 74 2e 0a 25 |d stuff |to it..%|
|000002b0| 20 0a 25 20 52 65 76 69 | 73 69 6f 6e 20 31 2e 38 | .% Revi|sion 1.8|
|000002c0| 20 20 39 30 2f 30 34 2f | 31 33 20 20 30 39 3a 31 | 90/04/|13 09:1|
|000002d0| 30 3a 31 39 20 20 6d 65 | 75 65 72 0a 25 20 44 72 |0:19 me|uer.% Dr|
|000002e0| 61 66 74 20 77 69 74 68 | 20 43 68 61 72 6c 69 65 |aft with| Charlie|
|000002f0| 27 73 20 63 6f 72 72 65 | 63 74 69 6f 6e 73 0a 25 |'s corre|ctions.%|
|00000300| 20 0a 0a 0a 5c 64 6f 63 | 75 6d 65 6e 74 73 74 79 | ...\doc|umentsty|
|00000310| 6c 65 5b 63 70 72 6f 67 | 5d 7b 61 72 74 69 63 6c |le[cprog|]{articl|
|00000320| 65 7d 0a 25 5c 64 6f 63 | 75 6d 65 6e 74 73 74 79 |e}.%\doc|umentsty|
|00000330| 6c 65 5b 63 70 72 6f 67 | 2c 64 6f 75 62 6c 65 73 |le[cprog|,doubles|
|00000340| 70 61 63 65 5d 7b 61 72 | 74 69 63 6c 65 7d 0a 0a |pace]{ar|ticle}..|
|00000350| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 70 72 6f |\newcomm|and{\pro|
|00000360| 67 6e 61 6d 65 7d 5b 31 | 5d 7b 7b 5c 74 74 20 23 |gname}[1|]{{\tt #|
|00000370| 31 7d 7d 0a 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |1}}.\new|command{|
|00000380| 5c 66 69 6c 65 6e 61 6d | 65 7d 5b 31 5d 7b 7b 5c |\filenam|e}[1]{{\|
|00000390| 74 74 20 23 31 7d 7d 0a | 5c 6e 65 77 63 6f 6d 6d |tt #1}}.|\newcomm|
|000003a0| 61 6e 64 7b 5c 6d 6f 64 | 75 6c 65 6e 61 6d 65 7d |and{\mod|ulename}|
|000003b0| 5b 31 5d 7b 7b 5c 74 74 | 20 23 31 7d 7d 0a 5c 6e |[1]{{\tt| #1}}.\n|
|000003c0| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 4f 4f 47 4c 7d |ewcomman|d{\OOGL}|
|000003d0| 7b 7b 5c 65 6d 20 4f 4f | 47 4c 7d 7d 0a 0a 5c 74 |{{\em OO|GL}}..\t|
|000003e0| 69 74 6c 65 7b 41 20 47 | 75 69 64 65 20 74 6f 20 |itle{A G|uide to |
|000003f0| 55 73 69 6e 67 20 5c 5c | 0a 5c 70 72 6f 67 6e 61 |Using \\|.\progna|
|00000400| 6d 65 7b 67 65 6f 6d 76 | 69 65 77 7d 20 61 6e 64 |me{geomv|iew} and|
|00000410| 20 7b 5c 4f 4f 47 4c 7d | 7d 0a 0a 5c 64 61 74 65 | {\OOGL}|}..\date|
|00000420| 7b 20 24 20 24 52 65 76 | 69 73 69 6f 6e 3a 20 31 |{ $ $Rev|ision: 1|
|00000430| 2e 33 20 24 20 24 20 5c | 5c 0a 24 20 24 44 61 74 |.3 $ $ \|\.$ $Dat|
|00000440| 65 3a 20 31 39 39 32 2f | 30 39 2f 32 32 20 32 30 |e: 1992/|09/22 20|
|00000450| 3a 35 34 3a 32 36 20 24 | 20 24 7d 0a 0a 0a 5c 61 |:54:26 $| $}...\a|
|00000460| 75 74 68 6f 72 7b 43 68 | 61 72 6c 69 65 20 47 75 |uthor{Ch|arlie Gu|
|00000470| 6e 6e 7d 0a 0a 5c 62 65 | 67 69 6e 7b 64 6f 63 75 |nn}..\be|gin{docu|
|00000480| 6d 65 6e 74 7d 0a 0a 5c | 6d 61 6b 65 74 69 74 6c |ment}..\|maketitl|
|00000490| 65 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 49 6e 74 72 |e..\sect|ion{Intr|
|000004a0| 6f 64 75 63 74 69 6f 6e | 7d 0a 0a 54 68 69 73 20 |oduction|}..This |
|000004b0| 64 6f 63 75 6d 65 6e 74 | 20 77 69 6c 6c 20 73 68 |document| will sh|
|000004c0| 6f 77 20 79 6f 75 20 68 | 6f 77 20 74 6f 20 77 72 |ow you h|ow to wr|
|000004d0| 69 74 65 20 70 72 6f 67 | 72 61 6d 73 20 75 73 69 |ite prog|rams usi|
|000004e0| 6e 67 20 74 68 65 20 4f | 62 6a 65 63 74 0a 4f 72 |ng the O|bject.Or|
|000004f0| 69 65 6e 74 65 64 20 47 | 72 61 70 68 69 63 73 20 |iented G|raphics |
|00000500| 4c 69 62 72 61 72 79 20 | 28 7b 5c 4f 4f 47 4c 7d |Library |({\OOGL}|
|00000510| 29 2e 20 20 49 74 20 77 | 69 6c 6c 20 61 6c 73 6f |). It w|ill also|
|00000520| 20 67 69 76 65 20 79 6f | 75 20 61 6e 20 69 6e 74 | give yo|u an int|
|00000530| 72 6f 64 75 63 74 69 6f | 6e 0a 74 6f 20 75 73 69 |roductio|n.to usi|
|00000540| 6e 67 20 5c 70 72 6f 67 | 6e 61 6d 65 7b 67 65 6f |ng \prog|name{geo|
|00000550| 6d 76 69 65 77 7d 2d 2d | 2d 61 20 33 2d 64 69 6d |mview}--|-a 3-dim|
|00000560| 65 6e 73 69 6f 6e 61 6c | 20 76 69 65 77 69 6e 67 |ensional| viewing|
|00000570| 20 70 72 6f 67 72 61 6d | 0a 77 72 69 74 74 65 6e | program|.written|
|00000580| 20 75 73 69 6e 67 20 7b | 5c 4f 4f 47 4c 7d 2e 20 | using {|\OOGL}. |
|00000590| 20 42 79 20 75 73 69 6e | 67 20 5c 70 72 6f 67 6e | By usin|g \progn|
|000005a0| 61 6d 65 7b 67 65 6f 6d | 76 69 65 77 7d 2c 20 79 |ame{geom|view}, y|
|000005b0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0a |our appl|ication.|
|000005c0| 69 73 20 66 72 65 65 64 | 20 66 72 6f 6d 20 20 68 |is freed| from h|
|000005d0| 61 76 69 6e 67 20 74 6f | 20 64 6f 20 61 6e 79 20 |aving to| do any |
|000005e0| 73 70 65 63 69 66 69 63 | 20 67 72 61 70 68 69 63 |specific| graphic|
|000005f0| 73 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0a 5c 66 6f |s functi|ons..\fo|
|00000600| 6f 74 6e 6f 74 65 7b 52 | 65 66 65 72 65 6e 63 65 |otnote{R|eference|
|00000610| 73 20 74 6f 20 66 69 6c | 65 73 20 69 6e 20 74 68 |s to fil|es in th|
|00000620| 69 73 20 64 6f 63 75 6d | 65 6e 74 20 77 69 6c 6c |is docum|ent will|
|00000630| 20 75 73 65 20 74 68 65 | 0a 73 79 6d 62 6f 6c 20 | use the|.symbol |
|00000640| 47 45 4f 4d 20 74 6f 20 | 72 65 66 65 72 20 74 6f |GEOM to |refer to|
|00000650| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 77 | the dir|ectory w|
|00000660| 68 65 72 65 20 74 68 65 | 20 67 65 6f 6d 76 69 65 |here the| geomvie|
|00000670| 77 0a 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 68 |w.distri|bution h|
|00000680| 61 73 20 62 65 65 6e 20 | 69 6e 73 74 61 6c 6c 65 |as been |installe|
|00000690| 64 20 6f 6e 20 79 6f 75 | 72 20 73 79 73 74 65 6d |d on you|r system|
|000006a0| 2e 7d 0a 0a 54 68 65 20 | 7b 5c 4f 4f 47 4c 7d 20 |.}..The |{\OOGL} |
|000006b0| 72 6f 75 74 69 6e 65 73 | 20 61 72 65 20 61 20 68 |routines| are a h|
|000006c0| 69 67 68 2d 6c 65 76 65 | 6c 20 73 65 74 20 6f 66 |igh-leve|l set of|
|000006d0| 20 6d 6f 64 75 6c 65 73 | 20 74 68 61 74 20 6c 65 | modules| that le|
|000006e0| 74 20 79 6f 75 20 73 70 | 65 63 69 66 79 0a 61 6e |t you sp|ecify.an|
|000006f0| 64 20 64 69 73 70 6c 61 | 79 20 67 65 6f 6d 65 74 |d displa|y geomet|
|00000700| 72 79 2e 20 20 54 68 65 | 72 65 20 61 72 65 20 73 |ry. The|re are s|
|00000710| 65 76 65 72 61 6c 20 74 | 79 70 65 73 20 6f 66 20 |everal t|ypes of |
|00000720| 67 65 6f 6d 65 74 72 69 | 63 0a 70 72 69 6d 69 74 |geometri|c.primit|
|00000730| 69 76 65 73 20 77 68 69 | 63 68 20 4f 4f 47 4c 20 |ives whi|ch OOGL |
|00000740| 63 61 6e 20 68 61 6e 64 | 6c 65 2c 20 69 6e 63 6c |can hand|le, incl|
|00000750| 75 64 69 6e 67 20 70 6f | 6c 79 67 6f 6e 73 2c 20 |uding po|lygons, |
|00000760| 76 65 63 74 6f 72 73 2c | 0a 6d 65 73 68 65 73 2c |vectors,|.meshes,|
|00000770| 20 61 6e 64 20 70 61 72 | 61 6d 65 74 72 69 63 20 | and par|ametric |
|00000780| 73 75 72 66 61 63 65 73 | 20 70 61 74 63 68 65 73 |surfaces| patches|
|00000790| 2e 20 20 49 6e 20 61 64 | 64 69 74 69 6f 6e 2c 20 |. In ad|dition, |
|000007a0| 74 68 65 73 65 20 70 72 | 69 6d 69 74 69 76 65 73 |these pr|imitives|
|000007b0| 0a 63 61 6e 20 62 65 20 | 6f 72 67 61 6e 69 7a 65 |.can be |organize|
|000007c0| 64 20 69 6e 74 6f 20 61 | 20 68 69 67 68 65 72 2d |d into a| higher-|
|000007d0| 6f 72 64 65 72 20 6c 69 | 73 74 73 2e 20 20 0a 41 |order li|sts. .A|
|000007e0| 6c 73 6f 2c 20 6d 75 6c | 74 69 70 6c 65 20 69 6e |lso, mul|tiple in|
|000007f0| 73 74 61 6e 63 65 73 20 | 6f 66 20 74 68 65 20 73 |stances |of the s|
|00000800| 61 6d 65 20 67 65 6f 6d | 65 74 72 79 20 63 61 6e |ame geom|etry can|
|00000810| 20 62 65 0a 63 72 65 61 | 74 65 64 20 62 79 20 73 | be.crea|ted by s|
|00000820| 70 65 63 69 66 79 69 6e | 67 20 64 69 66 66 65 72 |pecifyin|g differ|
|00000830| 65 6e 74 20 6d 6f 64 65 | 6c 69 6e 67 20 74 72 61 |ent mode|ling tra|
|00000840| 6e 73 66 6f 72 6d 61 74 | 69 6f 6e 73 2e 0a 45 61 |nsformat|ions..Ea|
|00000850| 63 68 20 73 6f 72 74 20 | 6f 66 20 67 65 6f 6d 65 |ch sort |of geome|
|00000860| 74 72 69 63 20 6f 62 6a | 65 63 74 2c 20 77 68 65 |tric obj|ect, whe|
|00000870| 74 68 65 72 20 6c 6f 77 | 2d 6c 65 76 65 6c 20 6f |ther low|-level o|
|00000880| 72 20 68 69 67 68 2d 6c | 65 76 65 6c 2c 0a 63 6f |r high-l|evel,.co|
|00000890| 6d 65 73 20 65 71 75 69 | 70 70 65 64 20 77 69 74 |mes equi|pped wit|
|000008a0| 68 20 61 20 73 74 61 6e | 64 61 72 64 20 73 65 74 |h a stan|dard set|
|000008b0| 20 6f 66 20 6f 70 65 72 | 61 74 69 6f 6e 73 2e 0a | of oper|ations..|
|000008c0| 45 78 61 6d 70 6c 65 73 | 20 6f 66 20 74 68 65 73 |Examples| of thes|
|000008d0| 65 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 69 6e 63 |e operat|ions inc|
|000008e0| 6c 75 64 65 20 0a 6c 6f | 61 64 69 6e 67 20 66 72 |lude .lo|ading fr|
|000008f0| 6f 6d 20 61 6e 64 20 73 | 61 76 69 6e 67 20 74 6f |om and s|aving to|
|00000900| 20 66 69 6c 65 73 2c 20 | 0a 64 72 61 77 69 6e 67 | files, |.drawing|
|00000910| 20 74 6f 20 61 20 64 69 | 73 70 6c 61 79 20 64 65 | to a di|splay de|
|00000920| 76 69 63 65 2c 0a 61 6e | 64 20 63 6f 6d 70 75 74 |vice,.an|d comput|
|00000930| 69 6e 67 20 61 20 62 6f | 75 6e 64 69 6e 67 20 62 |ing a bo|unding b|
|00000940| 6f 78 2e 0a 54 68 69 73 | 20 73 74 79 6c 65 20 6f |ox..This| style o|
|00000950| 66 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2c 20 77 |f progra|mming, w|
|00000960| 68 69 63 68 20 63 6f 6d | 62 69 6e 65 73 20 64 61 |hich com|bines da|
|00000970| 74 61 20 73 74 72 75 63 | 74 75 72 65 73 0a 77 69 |ta struc|tures.wi|
|00000980| 74 68 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 77 68 |th opera|tions wh|
|00000990| 69 63 68 20 61 63 74 20 | 6f 6e 20 74 68 65 73 65 |ich act |on these|
|000009a0| 20 64 61 74 61 20 73 74 | 72 75 63 74 75 72 65 73 | data st|ructures|
|000009b0| 2c 20 69 73 20 6b 6e 6f | 77 6e 20 61 73 0a 6f 62 |, is kno|wn as.ob|
|000009c0| 6a 65 63 74 2d 6f 72 69 | 65 6e 74 65 64 20 70 72 |ject-ori|ented pr|
|000009d0| 6f 67 72 61 6d 6d 69 6e | 67 2e 0a 41 6c 74 68 6f |ogrammin|g..Altho|
|000009e0| 75 67 68 20 63 75 72 72 | 65 6e 74 6c 79 20 7b 5c |ugh curr|ently {\|
|000009f0| 4f 4f 47 4c 7d 20 6f 6e | 6c 79 20 77 6f 72 6b 73 |OOGL} on|ly works|
|00000a00| 20 6f 6e 20 53 47 49 20 | 77 6f 72 6b 73 74 61 74 | on SGI |workstat|
|00000a10| 69 6f 6e 73 2c 20 69 74 | 0a 68 61 73 20 62 65 65 |ions, it|.has bee|
|00000a20| 6e 20 64 65 73 69 67 6e | 65 64 20 74 6f 20 6d 61 |n design|ed to ma|
|00000a30| 6b 65 20 69 74 20 65 61 | 73 79 20 74 6f 20 70 6f |ke it ea|sy to po|
|00000a40| 72 74 20 74 6f 20 6f 74 | 68 65 72 20 65 6e 76 69 |rt to ot|her envi|
|00000a50| 72 6f 6e 6d 65 6e 74 73 | 2e 0a 0a 49 74 20 69 73 |ronments|...It is|
|00000a60| 20 61 73 73 75 6d 65 64 | 20 79 6f 75 20 6b 6e 6f | assumed| you kno|
|00000a70| 77 20 68 6f 77 20 74 6f | 20 70 72 6f 67 72 61 6d |w how to| program|
|00000a80| 20 69 6e 20 43 2e 20 20 | 41 66 74 65 72 20 72 65 | in C. |After re|
|00000a90| 61 64 69 6e 67 20 74 68 | 69 73 20 61 6e 64 0a 6c |ading th|is and.l|
|00000aa0| 6f 6f 6b 69 6e 67 20 74 | 68 72 6f 75 67 68 20 74 |ooking t|hrough t|
|00000ab0| 68 65 20 65 78 61 6d 70 | 6c 65 20 70 72 6f 67 72 |he examp|le progr|
|00000ac0| 61 6d 73 20 79 6f 75 20 | 77 69 6c 6c 20 62 65 20 |ams you |will be |
|00000ad0| 72 65 61 64 79 20 74 6f | 20 63 72 65 61 74 65 20 |ready to| create |
|00000ae0| 79 6f 75 72 0a 6f 77 6e | 20 7b 5c 4f 4f 47 4c 7d |your.own| {\OOGL}|
|00000af0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 2e 0a 0a | applica|tions...|
|00000b00| 5c 73 65 63 74 69 6f 6e | 7b 49 6e 74 65 67 72 61 |\section|{Integra|
|00000b10| 74 69 6e 67 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |ting you|r applic|
|00000b20| 61 74 69 6f 6e 20 61 6e | 64 20 61 6e 64 20 5c 70 |ation an|d and \p|
|00000b30| 72 6f 67 6e 61 6d 65 7b | 67 65 6f 6d 76 69 65 77 |rogname{|geomview|
|00000b40| 7d 7d 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |}}..\sub|section{|
|00000b50| 57 68 79 20 55 73 65 20 | 5c 70 72 6f 67 6e 61 6d |Why Use |\prognam|
|00000b60| 65 7b 67 65 6f 6d 76 69 | 65 77 7d 3f 7d 0a 0a 5c |e{geomvi|ew}?}..\|
|00000b70| 70 72 6f 67 6e 61 6d 65 | 7b 67 65 6f 6d 76 69 65 |progname|{geomvie|
|00000b80| 77 7d 20 69 73 20 61 20 | 70 72 6f 67 72 61 6d 20 |w} is a |program |
|00000b90| 66 6f 72 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 |for the |display |
|00000ba0| 61 6e 64 0a 6d 61 6e 69 | 70 75 6c 61 74 69 6f 6e |and.mani|pulation|
|00000bb0| 20 6f 66 20 7b 5c 4f 4f | 47 4c 7d 20 6f 62 6a 65 | of {\OO|GL} obje|
|00000bc0| 63 74 73 2e 20 20 0a 49 | 66 20 79 6f 75 20 68 61 |cts. .I|f you ha|
|00000bd0| 76 65 6e 27 74 20 61 6c | 72 65 61 64 79 20 64 6f |ven't al|ready do|
|00000be0| 6e 65 20 73 6f 2c 20 79 | 6f 75 20 73 68 6f 75 6c |ne so, y|ou shoul|
|00000bf0| 64 20 66 61 6d 69 6c 69 | 61 72 69 7a 65 20 79 6f |d famili|arize yo|
|00000c00| 75 72 73 65 6c 66 0a 77 | 69 74 68 20 69 74 73 20 |urself.w|ith its |
|00000c10| 63 61 70 61 62 69 6c 69 | 6c 69 74 69 65 73 20 6e |capabili|lities n|
|00000c20| 6f 77 2e 20 43 6f 6e 73 | 75 6c 74 20 74 68 65 20 |ow. Cons|ult the |
|00000c30| 64 6f 63 75 6d 65 6e 74 | 73 20 20 0a 5c 66 69 6c |document|s .\fil|
|00000c40| 65 6e 61 6d 65 7b 6f 76 | 65 72 76 69 65 77 7d 20 |ename{ov|erview} |
|00000c50| 61 6e 64 20 20 5c 66 69 | 6c 65 6e 61 6d 65 7b 6f |and \fi|lename{o|
|00000c60| 6f 67 6c 74 6f 75 72 7d | 20 69 6e 20 74 68 65 0a |ogltour}| in the.|
|00000c70| 5c 66 69 6c 65 6e 61 6d | 65 7b 64 6f 63 7d 20 64 |\filenam|e{doc} d|
|00000c80| 69 72 65 63 74 6f 72 79 | 2c 20 61 6e 64 20 74 68 |irectory|, and th|
|00000c90| 65 20 6d 61 6e 20 70 61 | 67 65 0a 66 6f 72 20 5c |e man pa|ge.for \|
|00000ca0| 70 72 6f 67 6e 61 6d 65 | 7b 67 65 6f 6d 76 69 65 |progname|{geomvie|
|00000cb0| 77 7d 2c 20 62 6f 74 68 | 20 73 65 63 74 69 6f 6e |w}, both| section|
|00000cc0| 73 20 31 20 61 6e 64 20 | 35 2e 0a 54 68 65 20 73 |s 1 and |5..The s|
|00000cd0| 65 63 74 69 6f 6e 20 31 | 20 6d 61 6e 75 61 6c 20 |ection 1| manual |
|00000ce0| 70 61 67 65 20 64 65 73 | 63 72 69 62 65 73 20 74 |page des|cribes t|
|00000cf0| 68 65 20 75 73 65 72 20 | 69 6e 74 65 72 66 61 63 |he user |interfac|
|00000d00| 65 0a 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |e.of the| program|
|00000d10| 2c 20 77 68 69 6c 65 20 | 74 68 65 20 73 65 63 74 |, while |the sect|
|00000d20| 69 6f 6e 20 35 20 6d 61 | 6e 75 61 6c 20 70 61 67 |ion 5 ma|nual pag|
|00000d30| 65 20 64 65 73 63 72 69 | 62 65 73 0a 74 68 65 20 |e descri|bes.the |
|00000d40| 63 6f 6d 6d 61 6e 64 20 | 6c 61 6e 67 75 61 67 65 |command |language|
|00000d50| 20 74 68 72 6f 75 67 68 | 20 77 68 69 63 68 20 65 | through| which e|
|00000d60| 78 74 65 72 6e 61 6c 20 | 70 72 6f 67 72 61 6d 73 |xternal |programs|
|00000d70| 0a 63 61 6e 20 63 6f 6d | 6d 75 6e 69 63 61 74 65 |.can com|municate|
|00000d80| 20 77 69 74 68 20 5c 70 | 72 6f 67 6e 61 6d 65 7b | with \p|rogname{|
|00000d90| 67 65 6f 6d 76 69 65 77 | 7d 2e 20 20 20 49 74 20 |geomview|}. It |
|00000da0| 69 73 20 74 68 69 73 0a | 63 6f 6d 6d 61 6e 64 20 |is this.|command |
|00000db0| 6c 61 6e 67 75 61 67 65 | 20 77 68 69 63 68 20 74 |language| which t|
|00000dc0| 68 69 73 20 65 78 61 6d | 70 6c 65 20 77 69 6c 6c |his exam|ple will|
|00000dd0| 20 75 73 65 2e 0a 0a 54 | 68 69 73 20 63 6f 72 72 | use...T|his corr|
|00000de0| 65 73 70 6f 6e 64 73 20 | 74 6f 20 32 20 64 69 66 |esponds |to 2 dif|
|00000df0| 66 65 72 65 6e 74 20 77 | 61 79 73 20 74 6f 20 70 |ferent w|ays to p|
|00000e00| 72 6f 76 69 64 65 20 0a | 5c 70 72 6f 67 6e 61 6d |rovide .|\prognam|
|00000e10| 65 7b 67 65 6f 6d 76 69 | 65 77 7d 20 0a 77 69 74 |e{geomvi|ew} .wit|
|00000e20| 68 20 67 65 6f 6d 65 74 | 72 79 20 66 6f 72 20 76 |h geomet|ry for v|
|00000e30| 69 65 77 69 6e 67 2e 20 | 20 54 68 65 20 66 69 72 |iewing. | The fir|
|00000e40| 73 74 20 72 65 61 64 73 | 20 64 65 73 63 72 69 70 |st reads| descrip|
|00000e50| 74 69 6f 6e 73 20 6f 66 | 20 6f 62 6a 65 63 74 73 |tions of| objects|
|00000e60| 0a 66 72 6f 6d 20 61 20 | 66 69 6c 65 2e 20 5c 70 |.from a |file. \p|
|00000e70| 72 6f 67 6e 61 6d 65 7b | 67 65 6f 6d 76 69 65 77 |rogname{|geomview|
|00000e80| 7d 20 68 61 73 20 61 20 | 66 69 6c 65 20 62 72 6f |} has a |file bro|
|00000e90| 77 73 65 72 20 66 72 6f | 6d 20 0a 77 68 69 63 68 |wser fro|m .which|
|00000ea0| 20 75 73 65 72 73 20 63 | 61 6e 20 63 68 6f 6f 73 | users c|an choos|
|00000eb0| 65 20 66 69 6c 65 73 20 | 74 6f 20 65 78 61 6d 69 |e files |to exami|
|00000ec0| 6e 65 2e 0a 54 68 69 73 | 20 69 73 20 61 70 70 72 |ne..This| is appr|
|00000ed0| 6f 70 72 69 61 74 65 20 | 77 68 65 6e 20 74 68 65 |opriate |when the|
|00000ee0| 20 67 65 6f 6d 65 74 72 | 79 20 69 73 20 73 74 61 | geometr|y is sta|
|00000ef0| 74 69 63 2e 20 20 54 68 | 65 0a 73 65 63 6f 6e 64 |tic. Th|e.second|
|00000f00| 20 6d 65 74 68 6f 64 20 | 69 73 20 75 73 65 66 75 | method |is usefu|
|00000f10| 6c 20 77 68 65 6e 20 79 | 6f 75 20 64 65 73 69 72 |l when y|ou desir|
|00000f20| 65 20 74 6f 20 76 69 65 | 77 20 61 20 63 68 61 6e |e to vie|w a chan|
|00000f30| 67 69 6e 67 20 67 65 6f | 6d 65 74 72 79 2e 0a 54 |ging geo|metry..T|
|00000f40| 68 69 73 20 73 65 63 6f | 6e 64 20 6d 65 74 68 6f |his seco|nd metho|
|00000f50| 64 20 75 73 65 73 20 32 | 2d 77 61 79 20 70 69 70 |d uses 2|-way pip|
|00000f60| 65 73 20 74 6f 20 75 70 | 64 61 74 65 20 74 68 65 |es to up|date the|
|00000f70| 20 63 68 61 6e 67 69 6e | 67 20 67 65 6f 6d 65 74 | changin|g geomet|
|00000f80| 72 79 0a 66 72 6f 6d 20 | 79 6f 75 72 20 61 70 70 |ry.from |your app|
|00000f90| 6c 69 63 61 74 69 6f 6e | 0a 61 6e 64 20 74 6f 20 |lication|.and to |
|00000fa0| 70 61 73 73 20 62 61 63 | 6b 20 69 6e 66 6f 72 6d |pass bac|k inform|
|00000fb0| 61 74 69 6f 6e 20 66 72 | 6f 6d 20 5c 70 72 6f 67 |ation fr|om \prog|
|00000fc0| 6e 61 6d 65 7b 67 65 6f | 6d 76 69 65 77 7d 20 74 |name{geo|mview} t|
|00000fd0| 6f 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |o your a|pplicati|
|00000fe0| 6f 6e 2e 0a 54 68 69 73 | 20 63 6f 6d 6d 75 6e 69 |on..This| communi|
|00000ff0| 63 61 74 69 6f 6e 20 75 | 73 65 73 20 74 68 65 20 |cation u|ses the |
|00001000| 63 6f 6d 6d 61 6e 64 20 | 6c 61 6e 67 75 61 67 65 |command |language|
|00001010| 20 64 65 73 63 72 69 62 | 65 64 20 69 6e 0a 5c 70 | describ|ed in.\p|
|00001020| 72 6f 67 6e 61 6d 65 7b | 67 65 6f 6d 76 69 65 77 |rogname{|geomview|
|00001030| 28 35 29 7d 2e 0a 49 6e | 20 74 68 69 73 20 73 69 |(5)}..In| this si|
|00001040| 74 75 61 74 69 6f 6e 2c | 20 79 6f 75 72 20 61 70 |tuation,| your ap|
|00001050| 70 6c 69 63 61 74 69 6f | 6e 20 69 73 20 6b 6e 6f |plicatio|n is kno|
|00001060| 77 6e 20 61 73 20 61 6e | 20 7b 5c 65 6d 20 65 78 |wn as an| {\em ex|
|00001070| 74 65 72 6e 61 6c 0a 6d | 6f 64 75 6c 65 7d 20 66 |ternal.m|odule} f|
|00001080| 6f 72 20 5c 70 72 6f 67 | 6e 61 6d 65 7b 67 65 6f |or \prog|name{geo|
|00001090| 6d 76 69 65 77 7d 2e 0a | 0a 54 68 69 73 20 64 6f |mview}..|.This do|
|000010a0| 63 75 6d 65 6e 74 20 77 | 69 6c 6c 20 73 68 6f 77 |cument w|ill show|
|000010b0| 20 68 6f 77 20 74 6f 20 | 63 72 65 61 74 65 20 61 | how to |create a|
|000010c0| 6e 64 20 72 75 6e 20 61 | 6e 20 65 78 74 65 72 6e |nd run a|n extern|
|000010d0| 61 6c 20 6d 6f 64 75 6c | 65 2c 0a 69 6e 20 74 68 |al modul|e,.in th|
|000010e0| 69 73 20 63 61 73 65 20 | 6f 6e 65 20 73 69 6d 70 |is case |one simp|
|000010f0| 6c 79 20 6b 6e 6f 77 6e | 20 61 73 20 5c 70 72 6f |ly known| as \pro|
|00001100| 67 6e 61 6d 65 7b 65 78 | 61 6d 70 6c 65 7d 2e 0a |gname{ex|ample}..|
|00001110| 54 68 69 73 20 61 6e 64 | 20 61 6c 6c 20 74 68 65 |This and| all the|
|00001120| 20 6f 74 68 65 72 20 66 | 69 6c 65 73 20 69 6e 76 | other f|iles inv|
|00001130| 6f 6c 76 65 64 20 69 6e | 20 74 68 69 73 20 61 72 |olved in| this ar|
|00001140| 65 20 74 6f 20 62 65 20 | 66 6f 75 6e 64 0a 69 6e |e to be |found.in|
|00001150| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 5c | the dir|ectory \|
|00001160| 66 69 6c 65 6e 61 6d 65 | 7b 47 45 4f 4d 2f 73 72 |filename|{GEOM/sr|
|00001170| 63 2f 62 69 6e 2f 65 78 | 61 6d 70 6c 65 7d 2e 0a |c/bin/ex|ample}..|
|00001180| 0a 5c 73 65 63 74 69 6f | 6e 7b 48 6f 77 20 74 6f |.\sectio|n{How to|
|00001190| 20 57 72 69 74 65 20 61 | 6e 20 45 78 74 65 72 6e | Write a|n Extern|
|000011a0| 61 6c 20 4d 6f 64 75 6c | 65 7d 0a 0a 5c 73 75 62 |al Modul|e}..\sub|
|000011b0| 73 65 63 74 69 6f 6e 7b | 53 74 72 75 63 74 75 72 |section{|Structur|
|000011c0| 65 20 6f 66 20 74 68 65 | 20 5c 4f 4f 47 4c 5c 20 |e of the| \OOGL\ |
|000011d0| 20 52 6f 75 74 69 6e 65 | 73 7d 0a 0a 5c 4f 4f 47 | Routine|s}..\OOG|
|000011e0| 4c 5c 20 20 73 74 61 6e | 64 73 20 66 6f 72 20 60 |L\ stan|ds for `|
|000011f0| 60 4f 62 6a 65 63 74 2d | 4f 72 69 65 6e 74 65 64 |`Object-|Oriented|
|00001200| 20 47 72 61 70 68 69 63 | 73 20 4c 69 62 72 61 72 | Graphic|s Librar|
|00001210| 79 2e 27 27 20 20 0a 54 | 68 65 20 6c 69 62 72 61 |y.'' .T|he libra|
|00001220| 72 79 0a 64 65 66 69 6e | 65 73 20 61 20 63 6c 61 |ry.defin|es a cla|
|00001230| 73 73 20 6f 66 20 60 60 | 67 65 6f 6d 65 74 72 79 |ss of ``|geometry|
|00001240| 20 6f 62 6a 65 63 74 73 | 2e 27 27 20 20 41 73 20 | objects|.'' As |
|00001250| 69 6e 64 69 63 61 74 65 | 64 20 61 62 6f 76 65 2c |indicate|d above,|
|00001260| 0a 74 68 65 73 65 20 61 | 72 65 20 6f 62 6a 65 63 |.these a|re objec|
|00001270| 74 2d 6f 72 69 65 6e 74 | 65 64 20 0a 69 6e 20 74 |t-orient|ed .in t|
|00001280| 68 65 20 73 65 6e 73 65 | 20 74 68 61 74 20 61 20 |he sense| that a |
|00001290| 67 65 6f 6d 65 74 72 79 | 20 6f 62 6a 65 63 74 20 |geometry| object |
|000012a0| 69 73 20 61 0a 64 61 74 | 61 20 73 74 72 75 63 74 |is a.dat|a struct|
|000012b0| 75 72 65 20 70 6c 75 73 | 20 61 20 73 65 74 20 6f |ure plus| a set o|
|000012c0| 66 20 70 72 6f 63 65 64 | 75 72 65 73 2c 20 6f 66 |f proced|ures, of|
|000012d0| 74 65 6e 20 63 61 6c 6c | 65 64 0a 60 60 6d 65 74 |ten call|ed.``met|
|000012e0| 68 6f 64 73 27 27 2c 20 | 77 68 69 63 68 20 6f 70 |hods'', |which op|
|000012f0| 65 72 61 74 65 20 6f 6e | 20 74 68 65 20 64 61 74 |erate on| the dat|
|00001300| 61 2e 20 20 0a 54 68 65 | 20 6f 62 6a 65 63 74 20 |a. .The| object |
|00001310| 69 73 20 61 63 63 65 73 | 73 69 62 6c 65 20 6f 6e |is acces|sible on|
|00001320| 6c 79 20 74 68 72 6f 75 | 67 68 20 69 74 73 20 6d |ly throu|gh its m|
|00001330| 65 74 68 6f 64 73 2e 0a | 0a 41 6e 6f 74 68 65 72 |ethods..|.Another|
|00001340| 20 66 65 61 74 75 72 65 | 20 6f 66 20 6f 62 6a 65 | feature| of obje|
|00001350| 63 74 2d 6f 72 69 65 6e | 74 65 64 20 70 72 6f 67 |ct-orien|ted prog|
|00001360| 72 61 6d 6d 69 6e 67 20 | 69 73 20 74 68 65 20 63 |ramming |is the c|
|00001370| 61 70 61 63 69 74 79 0a | 74 6f 20 63 72 65 61 74 |apacity.|to creat|
|00001380| 65 20 73 75 62 63 6c 61 | 73 73 65 73 20 6f 66 20 |e subcla|sses of |
|00001390| 61 20 63 6c 61 73 73 2e | 0a 54 68 65 72 65 20 61 |a class.|.There a|
|000013a0| 72 65 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 73 |re a num|ber of s|
|000013b0| 75 62 63 6c 61 73 73 65 | 73 20 6f 66 20 74 68 65 |ubclasse|s of the|
|000013c0| 20 67 65 6e 65 72 69 63 | 20 67 65 6f 6d 65 74 72 | generic| geometr|
|000013d0| 79 20 20 63 6c 61 73 73 | 20 47 65 6f 6d 2e 0a 49 |y class| Geom..I|
|000013e0| 6e 20 70 72 61 63 74 69 | 63 65 2c 20 65 61 63 68 |n practi|ce, each|
|000013f0| 20 69 6e 73 74 61 6e 63 | 65 20 6f 66 20 74 68 65 | instanc|e of the|
|00001400| 20 47 65 6f 6d 20 63 6c | 61 73 73 20 69 73 20 61 | Geom cl|ass is a|
|00001410| 6c 73 6f 20 61 6e 20 69 | 6e 73 74 61 6e 63 65 20 |lso an i|nstance |
|00001420| 20 0a 6f 66 20 61 20 73 | 70 65 63 69 66 69 63 20 | .of a s|pecific |
|00001430| 73 75 62 63 6c 61 73 73 | 2c 20 62 75 74 20 74 68 |subclass|, but th|
|00001440| 69 73 20 69 73 6e 27 74 | 20 6e 65 63 65 73 73 61 |is isn't| necessa|
|00001450| 72 69 6c 79 20 74 72 75 | 65 20 69 6e 20 67 65 6e |rily tru|e in gen|
|00001460| 65 72 61 6c 2e 20 0a 45 | 78 61 6d 70 6c 65 20 73 |eral. .E|xample s|
|00001470| 75 62 63 6c 61 73 73 65 | 73 20 69 6e 63 6c 75 64 |ubclasse|s includ|
|00001480| 65 3a 20 76 65 63 74 6f | 72 73 2c 20 70 6f 6c 79 |e: vecto|rs, poly|
|00001490| 67 6f 6e 73 2c 0a 6d 65 | 73 68 65 73 2c 20 70 61 |gons,.me|shes, pa|
|000014a0| 72 61 6d 65 74 72 69 63 | 20 73 75 72 66 61 63 65 |rametric| surface|
|000014b0| 20 70 61 74 63 68 65 73 | 2c 20 61 6e 64 20 62 6f | patches|, and bo|
|000014c0| 75 6e 64 69 6e 67 20 62 | 6f 78 65 73 2e 0a 54 68 |unding b|oxes..Th|
|000014d0| 65 72 65 20 61 72 65 20 | 61 6c 73 6f 20 63 6f 6d |ere are |also com|
|000014e0| 70 6f 73 69 74 65 20 73 | 75 62 63 6c 61 73 73 65 |posite s|ubclasse|
|000014f0| 73 20 62 75 69 6c 74 20 | 6f 6e 20 74 68 65 73 65 |s built |on these|
|00001500| 2c 20 73 75 63 68 20 61 | 73 0a 6c 69 73 74 73 20 |, such a|s.lists |
|00001510| 61 6e 64 20 69 6e 73 74 | 61 6e 63 65 73 2e 20 20 |and inst|ances. |
|00001520| 53 65 65 20 6f 6f 67 6c | 28 35 29 20 66 6f 72 20 |See oogl|(5) for |
|00001530| 61 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |a descri|ption of|
|00001540| 20 74 68 65 0a 66 69 6c | 65 20 66 6f 72 6d 61 74 | the.fil|e format|
|00001550| 73 20 62 65 6c 6f 6e 67 | 69 6e 67 20 74 6f 20 74 |s belong|ing to t|
|00001560| 68 65 73 65 20 73 75 62 | 63 6c 61 73 73 65 73 2e |hese sub|classes.|
|00001570| 20 20 0a 0a 41 6c 6c 20 | 73 75 62 63 6c 61 73 73 | ..All |subclass|
|00001580| 65 73 20 6f 66 20 67 65 | 6f 6d 65 74 72 79 20 6f |es of ge|ometry o|
|00001590| 62 6a 65 63 74 73 20 68 | 61 76 65 20 61 20 73 65 |bjects h|ave a se|
|000015a0| 74 20 6f 66 20 73 74 61 | 6e 64 61 72 64 20 6d 65 |t of sta|ndard me|
|000015b0| 74 68 6f 64 73 20 75 73 | 65 64 20 74 6f 0a 6d 61 |thods us|ed to.ma|
|000015c0| 6e 69 70 75 6c 61 74 65 | 20 74 68 65 20 6f 62 6a |nipulate| the obj|
|000015d0| 65 63 74 73 2e 20 20 53 | 6f 6d 65 20 65 78 61 6d |ects. S|ome exam|
|000015e0| 70 6c 65 20 6d 65 74 68 | 6f 64 73 20 61 72 65 3a |ple meth|ods are:|
|000015f0| 20 43 72 65 61 74 65 2c | 20 44 65 6c 65 74 65 2c | Create,| Delete,|
|00001600| 0a 44 72 61 77 2c 20 4c | 6f 61 64 2c 20 53 61 76 |.Draw, L|oad, Sav|
|00001610| 65 2c 20 61 6e 64 20 50 | 72 69 6e 74 2e 20 20 0a |e, and P|rint. .|
|00001620| 54 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 20 73 75 |The name| of a su|
|00001630| 62 63 6c 61 73 73 27 73 | 20 6d 65 74 68 6f 64 73 |bclass's| methods|
|00001640| 0a 62 65 67 69 6e 20 77 | 69 74 68 20 74 68 65 20 |.begin w|ith the |
|00001650| 6e 61 6d 65 20 6f 66 20 | 74 68 61 74 20 73 75 62 |name of |that sub|
|00001660| 63 6c 61 73 73 2e 0a 46 | 6f 72 20 65 78 61 6d 70 |class..F|or examp|
|00001670| 6c 65 2c 20 74 68 65 20 | 44 72 61 77 20 6d 65 74 |le, the |Draw met|
|00001680| 68 6f 64 20 66 6f 72 20 | 61 20 6d 65 73 68 20 69 |hod for |a mesh i|
|00001690| 73 20 6e 61 6d 65 64 20 | 4d 65 73 68 44 72 61 77 |s named |MeshDraw|
|000016a0| 2e 0a 49 6e 20 67 65 6e | 65 72 61 6c 20 61 20 73 |..In gen|eral a s|
|000016b0| 75 62 63 6c 61 73 73 20 | 63 61 6e 20 69 6e 68 65 |ubclass |can inhe|
|000016c0| 72 69 74 0a 6d 65 74 68 | 6f 64 73 20 66 72 6f 6d |rit.meth|ods from|
|000016d0| 20 69 74 73 20 73 75 70 | 65 72 63 6c 61 73 73 65 | its sup|erclasse|
|000016e0| 73 3b 20 62 75 74 20 69 | 6e 20 7b 5c 4f 4f 47 4c |s; but i|n {\OOGL|
|000016f0| 7d 20 61 6c 6d 6f 73 74 | 20 61 6c 6c 20 73 75 62 |} almost| all sub|
|00001700| 63 6c 61 73 73 0a 6d 65 | 74 68 6f 64 73 20 61 72 |class.me|thods ar|
|00001710| 65 20 70 72 6f 76 69 64 | 65 64 20 73 70 65 63 69 |e provid|ed speci|
|00001720| 66 69 63 61 6c 6c 79 20 | 66 6f 72 20 74 68 61 74 |fically |for that|
|00001730| 20 73 75 62 63 6c 61 73 | 73 2e 0a 54 68 65 73 65 | subclas|s..These|
|00001740| 20 6d 65 74 68 6f 64 73 | 20 62 65 68 61 76 65 20 | methods| behave |
|00001750| 64 69 66 66 65 72 65 6e | 74 6c 79 0a 62 65 63 61 |differen|tly.beca|
|00001760| 75 73 65 20 74 68 65 79 | 20 61 72 65 20 65 61 63 |use they| are eac|
|00001770| 68 20 63 75 73 74 6f 6d | 69 7a 65 64 20 74 6f 20 |h custom|ized to |
|00001780| 74 68 65 20 70 61 72 74 | 69 63 75 6c 61 72 20 73 |the part|icular s|
|00001790| 75 62 63 6c 61 73 73 20 | 6f 66 20 0a 67 65 6f 6d |ubclass |of .geom|
|000017a0| 65 74 72 79 20 6f 62 6a | 65 63 74 20 74 6f 20 77 |etry obj|ect to w|
|000017b0| 68 69 63 68 20 74 68 65 | 79 20 62 65 6c 6f 6e 67 |hich the|y belong|
|000017c0| 2e 20 20 0a 54 68 65 20 | 64 65 74 61 69 6c 73 20 |. .The |details |
|000017d0| 6f 66 20 74 68 65 20 64 | 61 74 61 20 73 74 72 75 |of the d|ata stru|
|000017e0| 63 74 75 72 65 73 20 61 | 6e 64 20 65 78 69 73 74 |ctures a|nd exist|
|000017f0| 69 6e 67 20 6d 65 74 68 | 6f 64 73 0a 66 6f 72 20 |ing meth|ods.for |
|00001800| 65 61 63 68 20 73 75 62 | 63 6c 61 73 73 20 63 61 |each sub|class ca|
|00001810| 6e 20 62 65 20 66 6f 75 | 6e 64 20 69 6e 20 74 68 |n be fou|nd in th|
|00001820| 65 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 20 66 |e includ|e file f|
|00001830| 6f 72 20 74 68 61 74 0a | 73 75 62 63 6c 61 73 73 |or that.|subclass|
|00001840| 2e 20 54 68 65 73 65 20 | 61 72 65 20 6b 65 70 74 |. These |are kept|
|00001850| 20 69 6e 0a 5c 66 69 6c | 65 6e 61 6d 65 7b 47 45 | in.\fil|ename{GE|
|00001860| 4f 4d 2f 69 6e 63 6c 75 | 64 65 7d 2e 0a 0a 5c 73 |OM/inclu|de}...\s|
|00001870| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 7b 54 68 65 |ubsubsec|tion{The|
|00001880| 20 47 65 6e 65 72 69 63 | 20 43 6c 61 73 73 20 47 | Generic| Class G|
|00001890| 65 6f 6d 7d 0a 54 68 65 | 72 65 20 69 73 20 61 20 |eom}.The|re is a |
|000018a0| 74 79 70 65 20 6f 66 20 | 70 72 6f 67 72 61 6d 6d |type of |programm|
|000018b0| 69 6e 67 20 74 61 73 6b | 20 77 68 69 63 68 20 69 |ing task| which i|
|000018c0| 73 20 6d 61 64 65 20 6d | 75 63 68 20 65 61 73 69 |s made m|uch easi|
|000018d0| 65 72 20 62 79 20 74 68 | 65 20 66 61 63 74 0a 74 |er by th|e fact.t|
|000018e0| 68 61 74 20 65 61 63 68 | 20 69 6e 73 74 61 6e 63 |hat each| instanc|
|000018f0| 65 20 6f 66 20 61 20 73 | 75 62 63 6c 61 73 73 20 |e of a s|ubclass |
|00001900| 69 73 20 61 6c 73 6f 20 | 61 6e 20 69 6e 73 74 61 |is also |an insta|
|00001910| 6e 63 65 20 6f 66 0a 74 | 68 65 20 67 65 6e 65 72 |nce of.t|he gener|
|00001920| 69 63 20 63 6c 61 73 73 | 2e 20 49 6e 20 6f 75 72 |ic class|. In our|
|00001930| 20 63 61 73 65 2c 20 65 | 61 63 68 20 69 6e 73 74 | case, e|ach inst|
|00001940| 61 6e 63 65 20 6f 66 20 | 61 20 67 65 6f 6d 65 74 |ance of |a geomet|
|00001950| 72 79 20 73 75 62 63 6c | 61 73 73 20 69 73 0a 61 |ry subcl|ass is.a|
|00001960| 6c 73 6f 20 61 6e 20 69 | 6e 73 74 61 6e 63 65 20 |lso an i|nstance |
|00001970| 6f 66 20 74 68 65 20 67 | 65 6e 65 72 69 63 20 47 |of the g|eneric G|
|00001980| 65 6f 6d 20 63 6c 61 73 | 73 2e 0a 53 6f 20 69 66 |eom clas|s..So if|
|00001990| 20 6f 75 72 20 70 72 6f | 67 72 61 6d 2c 20 6c 69 | our pro|gram, li|
|000019a0| 6b 65 20 5c 70 72 6f 67 | 6e 61 6d 65 7b 67 65 6f |ke \prog|name{geo|
|000019b0| 6d 76 69 65 77 7d 2c 20 | 69 73 20 64 65 73 69 67 |mview}, |is desig|
|000019c0| 6e 65 64 20 74 6f 0a 64 | 65 61 6c 20 77 69 74 68 |ned to.d|eal with|
|000019d0| 20 6d 61 6e 79 20 64 69 | 66 66 65 72 65 6e 74 20 | many di|fferent |
|000019e0| 74 79 70 65 73 20 6f 66 | 20 67 65 6f 6d 65 74 72 |types of| geometr|
|000019f0| 79 20 6f 62 6a 65 63 74 | 73 2c 20 77 65 20 63 61 |y object|s, we ca|
|00001a00| 6e 20 73 69 6d 70 6c 69 | 66 79 0a 74 68 65 20 70 |n simpli|fy.the p|
|00001a10| 72 6f 67 72 61 6d 20 73 | 74 72 75 63 74 75 72 65 |rogram s|tructure|
|00001a20| 20 62 79 20 61 6c 77 61 | 79 73 20 77 6f 72 6b 69 | by alwa|ys worki|
|00001a30| 6e 67 20 77 69 74 68 20 | 74 68 65 20 47 65 6f 6d |ng with |the Geom|
|00001a40| 20 63 6c 61 73 73 20 72 | 61 74 68 65 72 0a 74 68 | class r|ather.th|
|00001a50| 61 6e 20 74 68 65 20 73 | 70 65 63 69 66 69 63 20 |an the s|pecific |
|00001a60| 73 75 62 63 6c 61 73 73 | 65 73 2e 20 20 47 65 6f |subclass|es. Geo|
|00001a70| 6d 4c 6f 61 64 20 61 6e | 64 20 47 65 6f 6d 44 72 |mLoad an|d GeomDr|
|00001a80| 61 77 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |aw, for |example,|
|00001a90| 0a 77 6f 72 6b 20 70 65 | 72 66 65 63 74 6c 79 20 |.work pe|rfectly |
|00001aa0| 77 65 6c 6c 20 74 6f 20 | 6c 6f 61 64 20 61 6e 64 |well to |load and|
|00001ab0| 20 64 72 61 77 20 69 6e | 73 74 61 6e 63 65 73 20 | draw in|stances |
|00001ac0| 6f 66 20 61 6e 79 20 73 | 75 62 63 6c 61 73 73 2c |of any s|ubclass,|
|00001ad0| 20 74 6f 6f 2e 0a 4f 66 | 20 63 6f 75 72 73 65 20 | too..Of| course |
|00001ae0| 69 74 20 74 61 6b 65 73 | 20 73 6f 6d 65 20 77 6f |it takes| some wo|
|00001af0| 72 6b 20 74 6f 20 6d 61 | 6b 65 20 73 75 72 65 20 |rk to ma|ke sure |
|00001b00| 74 68 69 73 20 77 6f 72 | 6b 73 2c 20 62 75 74 20 |this wor|ks, but |
|00001b10| 74 68 61 74 20 77 6f 72 | 6b 0a 68 61 73 20 61 6c |that wor|k.has al|
|00001b20| 72 65 61 64 79 20 62 65 | 65 6e 20 64 6f 6e 65 20 |ready be|en done |
|00001b30| 66 6f 72 20 79 6f 75 2e | 0a 0a 5c 73 75 62 73 65 |for you.|..\subse|
|00001b40| 63 74 69 6f 6e 7b 5c 70 | 72 6f 67 6e 61 6d 65 7b |ction{\p|rogname{|
|00001b50| 65 78 61 6d 70 6c 65 7d | 3a 20 41 20 4d 69 6e 69 |example}|: A Mini|
|00001b60| 6d 61 6c 20 7b 5c 4f 4f | 47 4c 7d 20 50 72 6f 67 |mal {\OO|GL} Prog|
|00001b70| 72 61 6d 7d 0a 0a 5c 70 | 72 6f 67 6e 61 6d 65 7b |ram}..\p|rogname{|
|00001b80| 65 78 61 6d 70 6c 65 7d | 20 0a 64 65 6d 6f 6e 73 |example}| .demons|
|00001b90| 74 72 61 74 65 73 20 74 | 68 65 20 75 73 65 20 6f |trates t|he use o|
|00001ba0| 66 20 74 68 65 20 6d 65 | 73 68 20 7b 5c 4f 4f 47 |f the me|sh {\OOG|
|00001bb0| 4c 7d 20 6f 62 6a 65 63 | 74 2e 20 0a 49 74 20 72 |L} objec|t. .It r|
|00001bc0| 65 70 65 61 74 65 64 6c | 79 20 63 6f 6d 70 75 74 |epeatedl|y comput|
|00001bd0| 65 73 20 61 20 63 68 61 | 6e 67 69 6e 67 20 66 75 |es a cha|nging fu|
|00001be0| 6e 63 74 69 6f 6e 20 6f | 6e 20 61 0a 72 65 63 74 |nction o|n a.rect|
|00001bf0| 61 6e 67 75 6c 61 72 20 | 67 72 69 64 2c 20 6f 72 |angular |grid, or|
|00001c00| 20 6d 65 73 68 2c 20 6f | 66 20 24 28 78 2c 79 29 | mesh, o|f $(x,y)|
|00001c10| 24 20 70 61 69 72 73 2e | 20 20 0a 41 73 20 74 68 |$ pairs.| .As th|
|00001c20| 65 20 6d 65 73 68 20 69 | 73 20 63 68 61 6e 67 65 |e mesh i|s change|
|00001c30| 64 20 62 79 0a 5c 70 72 | 6f 67 6e 61 6d 65 7b 65 |d by.\pr|ogname{e|
|00001c40| 78 61 6d 70 6c 65 7d 20 | 6f 76 65 72 20 74 69 6d |xample} |over tim|
|00001c50| 65 2c 20 74 68 65 73 65 | 20 63 68 61 6e 67 65 73 |e, these| changes|
|00001c60| 20 64 79 6e 61 6d 69 63 | 61 6c 6c 79 20 61 70 70 | dynamic|ally app|
|00001c70| 65 61 72 20 69 6e 20 74 | 68 65 0a 5c 70 72 6f 67 |ear in t|he.\prog|
|00001c80| 6e 61 6d 65 7b 67 65 6f | 6d 76 69 65 77 7d 20 77 |name{geo|mview} w|
|00001c90| 69 6e 64 6f 77 2e 20 20 | 0a 0a 41 20 73 65 63 6f |indow. |..A seco|
|00001ca0| 6e 64 20 66 65 61 74 75 | 72 65 20 6f 66 20 5c 70 |nd featu|re of \p|
|00001cb0| 72 6f 67 6e 61 6d 65 7b | 65 78 61 6d 70 6c 65 7d |rogname{|example}|
|00001cc0| 20 69 73 20 74 68 65 20 | 75 73 65 20 6f 66 20 74 | is the |use of t|
|00001cd0| 68 65 20 46 6f 72 6d 73 | 0a 69 6e 74 65 72 66 61 |he Forms|.interfa|
|00001ce0| 63 65 20 62 75 69 6c 64 | 65 72 20 74 6f 20 63 72 |ce build|er to cr|
|00001cf0| 65 61 74 65 20 74 68 65 | 20 75 73 65 72 20 69 6e |eate the| user in|
|00001d00| 74 65 72 66 61 63 65 2e | 20 20 54 68 69 73 20 69 |terface.| This i|
|00001d10| 73 20 61 20 70 75 62 6c | 69 63 0a 64 6f 6d 61 69 |s a publ|ic.domai|
|00001d20| 6e 20 69 6e 74 65 72 66 | 61 63 65 20 62 75 69 6c |n interf|ace buil|
|00001d30| 64 65 72 20 77 68 69 63 | 68 20 68 61 73 20 62 65 |der whic|h has be|
|00001d40| 65 6e 20 75 73 65 64 20 | 74 6f 20 63 72 65 61 74 |en used |to creat|
|00001d50| 65 20 0a 5c 70 72 6f 67 | 6e 61 6d 65 7b 67 65 6f |e .\prog|name{geo|
|00001d60| 6d 76 69 65 77 7d 2e 20 | 20 49 74 20 69 73 20 69 |mview}. | It is i|
|00001d70| 6e 63 6c 75 64 65 64 20 | 68 65 72 65 20 62 65 63 |ncluded |here bec|
|00001d80| 61 75 73 65 20 77 65 20 | 68 61 76 65 20 66 6f 75 |ause we |have fou|
|00001d90| 6e 64 0a 69 74 20 74 6f | 20 62 65 20 61 6e 20 65 |nd.it to| be an e|
|00001da0| 66 66 65 63 74 69 76 65 | 20 74 6f 6f 6c 20 66 6f |ffective| tool fo|
|00001db0| 72 20 63 72 65 61 74 69 | 6e 67 20 69 6e 74 65 72 |r creati|ng inter|
|00001dc0| 61 63 74 69 76 65 20 61 | 70 70 6c 69 63 61 74 69 |active a|pplicati|
|00001dd0| 6f 6e 73 2e 0a 54 68 65 | 20 46 6f 72 6d 73 20 70 |ons..The| Forms p|
|00001de0| 61 63 6b 61 67 65 20 69 | 73 20 77 72 69 74 74 65 |ackage i|s writte|
|00001df0| 6e 20 62 79 20 4d 61 72 | 6b 20 4f 76 65 72 6d 61 |n by Mar|k Overma|
|00001e00| 72 73 20 6f 66 0a 55 74 | 72 65 63 68 74 20 55 6e |rs of.Ut|recht Un|
|00001e10| 69 76 65 72 73 69 74 79 | 20 61 6e 64 20 69 73 20 |iversity| and is |
|00001e20| 61 76 61 69 6c 61 62 6c | 65 20 76 69 61 20 61 6e |availabl|e via an|
|00001e30| 6f 6e 79 6d 6f 75 73 20 | 66 74 70 20 66 72 6f 6d |onymous |ftp from|
|00001e40| 20 61 72 63 68 69 76 65 | 2e 63 73 2e 72 75 75 2e | archive|.cs.ruu.|
|00001e50| 6e 6c 2e 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |nl...\su|bsubsect|
|00001e60| 69 6f 6e 7b 50 72 65 70 | 61 72 69 6e 67 20 74 6f |ion{Prep|aring to|
|00001e70| 20 72 75 6e 20 5c 70 72 | 6f 67 6e 61 6d 65 7b 65 | run \pr|ogname{e|
|00001e80| 78 61 6d 70 6c 65 7d 7d | 0a 0a 46 69 72 73 74 2c |xample}}|..First,|
|00001e90| 20 63 68 65 63 6b 20 74 | 68 61 74 20 5c 66 69 6c | check t|hat \fil|
|00001ea0| 65 6e 61 6d 65 7b 47 45 | 4f 4d 2f 62 69 6e 2f 73 |ename{GE|OM/bin/s|
|00001eb0| 67 69 2f 65 78 61 6d 70 | 6c 65 7d 20 65 78 69 73 |gi/examp|le} exis|
|00001ec0| 74 73 2e 0a 49 66 20 6e | 6f 74 2c 20 66 69 72 73 |ts..If n|ot, firs|
|00001ed0| 74 20 63 68 61 6e 67 65 | 20 64 69 72 65 63 74 6f |t change| directo|
|00001ee0| 72 79 20 74 6f 20 5c 66 | 69 6c 65 6e 61 6d 65 7b |ry to \f|ilename{|
|00001ef0| 47 45 4f 4d 2f 73 72 63 | 2f 62 69 6e 2f 65 78 61 |GEOM/src|/bin/exa|
|00001f00| 6d 70 6c 65 7d 0a 61 6e | 64 20 74 79 70 65 0a 0a |mple}.an|d type..|
|00001f10| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00001f20| 0a 25 20 20 6d 61 6b 65 | 20 69 6e 73 74 61 6c 6c |.% make| install|
|00001f30| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00001f40| 0a 59 6f 75 27 6c 6c 20 | 6e 65 78 74 20 6e 65 65 |.You'll |next nee|
|00001f50| 64 20 74 6f 20 62 65 20 | 73 75 72 65 20 74 68 61 |d to be |sure tha|
|00001f60| 74 20 5c 70 72 6f 67 6e | 61 6d 65 7b 65 78 61 6d |t \progn|ame{exam|
|00001f70| 70 6c 65 7d 20 69 73 0a | 72 65 67 69 73 74 65 72 |ple} is.|register|
|00001f80| 65 64 20 77 69 74 68 20 | 5c 70 72 6f 67 6e 61 6d |ed with |\prognam|
|00001f90| 65 7b 67 65 6f 6d 76 69 | 65 77 7d 2e 20 20 54 6f |e{geomvi|ew}. To|
|00001fa0| 20 64 6f 20 74 68 69 73 | 2c 20 65 64 69 74 20 74 | do this|, edit t|
|00001fb0| 68 65 0a 66 69 6c 65 20 | 5c 66 69 6c 65 6e 61 6d |he.file |\filenam|
|00001fc0| 65 7b 2e 67 65 6f 6d 76 | 69 65 77 7d 20 69 6e 20 |e{.geomv|iew} in |
|00001fd0| 79 6f 75 72 20 68 6f 6d | 65 20 64 69 72 65 63 74 |your hom|e direct|
|00001fe0| 6f 72 79 20 61 6e 64 20 | 61 64 64 0a 74 68 65 20 |ory and |add.the |
|00001ff0| 6c 69 6e 65 0a 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |line..\b|egin{ver|
|00002000| 62 61 74 69 6d 7d 0a 20 | 20 28 65 6d 6f 64 75 6c |batim}. | (emodul|
|00002010| 65 2d 64 65 66 69 6e 65 | 20 22 45 78 61 6d 70 6c |e-define| "Exampl|
|00002020| 65 22 20 22 65 78 61 6d | 70 6c 65 22 29 0a 5c 65 |e" "exam|ple").\e|
|00002030| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 0a 54 68 |nd{verba|tim}..Th|
|00002040| 69 73 20 66 69 6c 65 20 | 77 69 6c 6c 20 62 65 20 |is file |will be |
|00002050| 72 65 61 64 20 62 79 20 | 5c 70 72 6f 67 6e 61 6d |read by |\prognam|
|00002060| 65 7b 67 65 6f 6d 76 69 | 65 77 7d 20 77 68 65 6e |e{geomvi|ew} when|
|00002070| 20 69 74 20 73 74 61 72 | 74 73 0a 75 70 20 61 6e | it star|ts.up an|
|00002080| 64 20 74 68 65 20 6c 69 | 6e 65 20 79 6f 75 27 76 |d the li|ne you'v|
|00002090| 65 20 61 64 64 65 64 20 | 74 65 6c 6c 73 20 69 74 |e added |tells it|
|000020a0| 20 74 6f 20 72 65 67 69 | 73 74 65 72 20 74 68 65 | to regi|ster the|
|000020b0| 0a 65 78 74 65 72 6e 61 | 6c 20 6d 6f 64 75 6c 65 |.externa|l module|
|000020c0| 20 5c 70 72 6f 67 6e 61 | 6d 65 7b 65 78 61 6d 70 | \progna|me{examp|
|000020d0| 6c 65 7d 20 74 6f 20 69 | 74 73 20 6c 69 73 74 20 |le} to i|ts list |
|000020e0| 6f 66 20 65 78 74 65 72 | 6e 61 6c 20 6d 6f 64 75 |of exter|nal modu|
|000020f0| 6c 65 73 2c 0a 75 6e 64 | 65 72 20 74 68 65 20 6e |les,.und|er the n|
|00002100| 61 6d 65 20 22 45 78 61 | 6d 70 6c 65 22 2e 20 20 |ame "Exa|mple". |
|00002110| 41 73 20 6c 6f 6e 67 20 | 61 73 20 5c 70 72 6f 67 |As long |as \prog|
|00002120| 6e 61 6d 65 7b 65 78 61 | 6d 70 6c 65 7d 20 65 78 |name{exa|mple} ex|
|00002130| 69 73 74 73 0a 69 6e 20 | 5c 66 69 6c 65 6e 61 6d |ists.in |\filenam|
|00002140| 65 7b 47 45 4f 4d 2f 62 | 69 6e 2f 73 67 69 7d 2c |e{GEOM/b|in/sgi},|
|00002150| 20 5c 70 72 6f 67 6e 61 | 6d 65 7b 67 65 6f 6d 76 | \progna|me{geomv|
|00002160| 69 65 77 7d 20 77 69 6c | 6c 20 66 69 6e 64 20 69 |iew} wil|l find i|
|00002170| 74 20 74 68 65 72 65 2e | 0a 4f 72 2c 20 79 6f 75 |t there.|.Or, you|
|00002180| 20 63 61 6e 20 70 72 6f | 76 69 64 65 20 61 20 66 | can pro|vide a f|
|00002190| 75 6c 6c 20 70 61 74 68 | 6e 61 6d 65 20 66 6f 72 |ull path|name for|
|000021a0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|000021b0| 6e 2c 20 77 68 69 63 68 | 0a 77 69 6c 6c 20 67 75 |n, which|.will gu|
|000021c0| 61 72 61 6e 74 65 65 20 | 74 68 61 74 20 69 74 20 |arantee |that it |
|000021d0| 77 69 6c 6c 20 62 65 20 | 66 6f 75 6e 64 2e 20 20 |will be |found. |
|000021e0| 41 6c 73 6f 2c 20 69 66 | 20 79 6f 75 72 20 61 70 |Also, if| your ap|
|000021f0| 70 6c 69 63 61 74 69 6f | 6e 0a 68 61 73 20 63 6f |plicatio|n.has co|
|00002200| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 61 72 67 75 6d |mmand li|ne argum|
|00002210| 65 6e 74 73 2c 20 69 6e | 63 6c 75 64 65 20 74 68 |ents, in|clude th|
|00002220| 65 6d 20 68 65 72 65 2e | 0a 0a 54 68 65 6e 2c 20 |em here.|..Then, |
|00002230| 72 75 6e 20 5c 70 72 6f | 67 6e 61 6d 65 7b 67 65 |run \pro|gname{ge|
|00002240| 6f 6d 76 69 65 77 7d 2e | 20 20 4f 6e 20 74 68 65 |omview}.| On the|
|00002250| 20 6d 61 69 6e 20 70 61 | 6e 65 6c 2c 20 75 6e 64 | main pa|nel, und|
|00002260| 65 72 20 74 68 65 0a 22 | 4d 6f 64 75 6c 65 73 22 |er the."|Modules"|
|00002270| 2c 20 20 22 45 78 61 6d | 70 6c 65 22 20 73 68 6f |, "Exam|ple" sho|
|00002280| 75 6c 64 20 61 70 70 65 | 61 72 2e 20 20 50 69 63 |uld appe|ar. Pic|
|00002290| 6b 20 74 68 69 73 20 65 | 6e 74 72 79 2e 20 20 49 |k this e|ntry. I|
|000022a0| 74 20 0a 73 68 6f 75 6c | 64 20 62 65 20 68 69 67 |t .shoul|d be hig|
|000022b0| 68 6c 69 67 68 74 65 64 | 20 69 6e 20 79 65 6c 6c |hlighted| in yell|
|000022c0| 6f 77 2c 20 61 6e 64 20 | 20 79 6f 75 20 73 68 6f |ow, and | you sho|
|000022d0| 75 6c 64 20 62 65 20 70 | 72 6f 6d 70 74 65 64 20 |uld be p|rompted |
|000022e0| 74 6f 0a 70 6c 61 63 65 | 20 61 20 73 6d 61 6c 6c |to.place| a small|
|000022f0| 20 70 61 6e 65 6c 20 6f | 6e 20 74 68 65 20 73 63 | panel o|n the sc|
|00002300| 72 65 65 6e 2e 20 20 54 | 68 69 73 20 69 73 20 74 |reen. T|his is t|
|00002310| 68 65 20 75 73 65 72 2d | 69 6e 74 65 72 66 61 63 |he user-|interfac|
|00002320| 65 20 70 61 6e 65 6c 0a | 63 72 65 61 74 65 20 75 |e panel.|create u|
|00002330| 73 69 6e 67 20 74 68 65 | 20 46 6f 72 6d 73 20 64 |sing the| Forms d|
|00002340| 65 73 69 67 6e 65 72 2e | 20 20 53 6f 6f 6e 20 61 |esigner.| Soon a|
|00002350| 66 74 65 72 20 79 6f 75 | 20 70 6c 61 63 65 20 74 |fter you| place t|
|00002360| 68 69 73 20 70 61 6e 65 | 6c 2c 0a 79 6f 75 20 73 |his pane|l,.you s|
|00002370| 68 6f 75 6c 64 20 73 65 | 65 20 61 6e 20 6f 62 6a |hould se|e an obj|
|00002380| 65 63 74 20 61 70 70 65 | 61 72 20 69 6e 20 74 68 |ect appe|ar in th|
|00002390| 65 20 67 65 6f 6d 76 69 | 65 77 20 76 69 65 77 69 |e geomvi|ew viewi|
|000023a0| 6e 67 20 77 69 6e 64 6f | 77 2e 0a 54 68 69 73 20 |ng windo|w..This |
|000023b0| 69 73 20 74 68 65 20 6f | 75 74 70 75 74 20 66 72 |is the o|utput fr|
|000023c0| 6f 6d 20 74 68 65 20 5c | 70 72 6f 67 6e 61 6d 65 |om the \|progname|
|000023d0| 7b 65 78 61 6d 70 6c 65 | 7d 20 6d 6f 64 75 6c 65 |{example|} module|
|000023e0| 2e 20 20 41 73 20 79 6f | 75 0a 77 61 74 63 68 2c |. As yo|u.watch,|
|000023f0| 20 74 68 65 20 67 65 6f | 6d 65 74 72 79 20 73 68 | the geo|metry sh|
|00002400| 6f 75 6c 64 20 63 68 61 | 6e 67 65 2e 20 20 49 66 |ould cha|nge. If|
|00002410| 20 79 6f 75 20 77 61 6e | 74 20 74 68 69 73 20 63 | you wan|t this c|
|00002420| 68 61 6e 67 65 20 74 6f | 20 62 65 0a 73 6c 6f 77 |hange to| be.slow|
|00002430| 65 72 20 6f 72 20 66 61 | 73 74 65 72 2c 20 79 6f |er or fa|ster, yo|
|00002440| 75 20 63 61 6e 20 6d 6f | 76 65 20 74 68 65 20 73 |u can mo|ve the s|
|00002450| 69 6e 67 6c 65 20 73 6c | 69 64 65 72 20 69 6e 20 |ingle sl|ider in |
|00002460| 74 68 65 20 70 61 6e 65 | 6c 0a 77 68 69 63 68 20 |the pane|l.which |
|00002470| 63 6f 6e 74 72 6f 6c 73 | 20 74 68 65 20 27 76 65 |controls| the 've|
|00002480| 6c 6f 63 69 74 79 27 20 | 6f 66 20 74 68 65 20 63 |locity' |of the c|
|00002490| 68 61 6e 67 65 2e 20 20 | 0a 0a 5c 73 75 62 73 75 |hange. |..\subsu|
|000024a0| 62 73 65 63 74 69 6f 6e | 7b 54 68 65 20 5c 70 72 |bsection|{The \pr|
|000024b0| 6f 67 6e 61 6d 65 7b 65 | 78 61 6d 70 6c 65 7d 20 |ogname{e|xample} |
|000024c0| 43 6f 64 65 7d 0a 0a 54 | 68 65 20 66 69 6c 65 20 |Code}..T|he file |
|000024d0| 5c 66 69 6c 65 6e 61 6d | 65 7b 6d 61 69 6e 2e 63 |\filenam|e{main.c|
|000024e0| 7d 20 63 6f 6e 74 61 69 | 6e 73 20 61 6c 6c 20 6f |} contai|ns all o|
|000024f0| 66 20 74 68 65 20 6e 6f | 6e 2d 7b 5c 4f 4f 47 4c |f the no|n-{\OOGL|
|00002500| 7d 20 63 6f 64 65 2e 20 | 20 54 68 65 0a 72 6f 75 |} code. | The.rou|
|00002510| 74 69 6e 65 20 5c 6d 6f | 64 75 6c 65 6e 61 6d 65 |tine \mo|dulename|
|00002520| 7b 6d 79 66 75 6e 63 7d | 20 69 73 20 74 68 65 20 |{myfunc}| is the |
|00002530| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 62 65 20 63 |function| to be c|
|00002540| 6f 6d 70 75 74 65 64 20 | 6f 76 65 72 20 74 68 65 |omputed |over the|
|00002550| 0a 6d 65 73 68 2e 20 20 | 49 74 73 20 61 72 67 75 |.mesh. |Its argu|
|00002560| 6d 65 6e 74 73 20 61 72 | 65 20 74 68 65 20 24 78 |ments ar|e the $x|
|00002570| 24 20 61 6e 64 20 24 79 | 24 20 6c 6f 63 61 74 69 |$ and $y|$ locati|
|00002580| 6f 6e 20 6f 6e 20 74 68 | 65 20 6d 65 73 68 20 61 |on on th|e mesh a|
|00002590| 6e 64 0a 74 68 65 20 74 | 69 6d 65 20 73 69 6e 63 |nd.the t|ime sinc|
|000025a0| 65 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 74 |e the st|art of t|
|000025b0| 68 65 20 70 72 6f 67 72 | 61 6d 2e 0a 0a 54 68 65 |he progr|am...The|
|000025c0| 20 6d 61 69 6e 20 72 6f | 75 74 69 6e 65 20 66 69 | main ro|utine fi|
|000025d0| 72 73 74 20 70 65 72 66 | 6f 72 6d 73 20 61 20 6e |rst perf|orms a n|
|000025e0| 75 6d 62 65 72 20 6f 66 | 20 69 6e 69 74 69 61 6c |umber of| initial|
|000025f0| 69 7a 61 74 69 6f 6e 20 | 73 74 65 70 73 2e 0a 54 |ization |steps..T|
|00002600| 68 65 20 63 61 6c 6c 20 | 74 6f 20 5c 6d 6f 64 75 |he call |to \modu|
|00002610| 6c 65 6e 61 6d 65 7b 42 | 65 67 69 6e 5c 5f 4f 4f |lename{B|egin\_OO|
|00002620| 47 4c 7d 20 65 73 73 65 | 6e 74 69 61 6c 6c 79 20 |GL} esse|ntially |
|00002630| 63 72 65 61 74 65 73 20 | 61 6e 20 65 6d 70 74 79 |creates |an empty|
|00002640| 20 0a 67 65 6f 6d 65 74 | 72 79 20 74 65 6d 70 6c | .geomet|ry templ|
|00002650| 61 74 65 20 61 6e 64 20 | 72 65 74 75 72 6e 73 3a |ate and |returns:|
|00002660| 0a 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|00002670| 6d 7d 0a 66 70 72 69 6e | 74 66 28 66 2c 20 22 28 |m}.fprin|tf(f, "(|
|00002680| 67 65 6f 6d 65 74 72 79 | 20 65 78 61 6d 70 6c 65 |geometry| example|
|00002690| 20 7b 20 3a 20 65 78 68 | 61 6e 64 6c 65 20 7d 29 | { : exh|andle })|
|000026a0| 5c 6e 22 29 3b 0a 66 66 | 6c 75 73 68 28 66 29 3b |\n");.ff|lush(f);|
|000026b0| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|000026c0| 0a 54 68 69 73 20 6e 6f | 74 69 66 69 65 73 20 74 |.This no|tifies t|
|000026d0| 68 65 20 76 69 65 77 65 | 72 20 74 6f 20 63 72 65 |he viewe|r to cre|
|000026e0| 61 74 65 20 61 6e 20 6f | 62 6a 65 63 74 20 6b 6e |ate an o|bject kn|
|000026f0| 6f 77 6e 20 61 73 20 0a | 7b 5c 65 6d 20 65 78 61 |own as .|{\em exa|
|00002700| 6d 70 6c 65 7d 2e 20 20 | 49 74 20 67 69 76 65 73 |mple}. |It gives|
|00002710| 20 69 74 20 74 68 65 20 | 69 6e 74 65 72 6e 61 6c | it the |internal|
|00002720| 20 6e 61 6d 65 2c 20 6f | 72 20 68 61 6e 64 6c 65 | name, o|r handle|
|00002730| 2c 20 0a 7b 5c 65 6d 20 | 65 78 68 61 6e 64 6c 65 |, .{\em |exhandle|
|00002740| 7d 2e 20 0a 4d 6f 72 65 | 20 6f 6e 20 74 68 69 73 |}. .More| on this|
|00002750| 20 6c 61 74 65 72 20 77 | 68 65 6e 20 77 65 20 63 | later w|hen we c|
|00002760| 6f 6d 65 20 74 6f 20 5c | 6d 6f 64 75 6c 65 6e 61 |ome to \|modulena|
|00002770| 6d 65 7b 55 70 64 61 74 | 65 4f 4f 47 4c 7d 0a 0a |me{Updat|eOOGL}..|
|00002780| 41 66 74 65 72 20 69 6e | 69 74 69 61 6c 69 7a 69 |After in|itializi|
|00002790| 6e 67 20 65 76 65 72 79 | 74 68 69 6e 67 2c 20 5c |ng every|thing, \|
|000027a0| 6d 6f 64 75 6c 65 6e 61 | 6d 65 7b 6d 61 69 6e 7d |modulena|me{main}|
|000027b0| 20 65 6e 74 65 72 73 20 | 61 6e 20 65 6e 64 6c 65 | enters |an endle|
|000027c0| 73 73 0a 6c 6f 6f 70 20 | 77 68 65 72 65 20 69 74 |ss.loop |where it|
|000027d0| 20 63 6f 6d 70 75 74 65 | 73 20 74 68 65 20 76 61 | compute|s the va|
|000027e0| 6c 75 65 73 20 6f 66 20 | 74 68 65 20 66 75 6e 63 |lues of |the func|
|000027f0| 74 69 6f 6e 20 6f 76 65 | 72 20 65 61 63 68 20 70 |tion ove|r each p|
|00002800| 6f 69 6e 74 20 69 6e 0a | 74 68 65 20 6d 65 73 68 |oint in.|the mesh|
|00002810| 20 61 6e 64 20 74 68 65 | 6e 20 63 61 6c 6c 73 20 | and the|n calls |
|00002820| 5c 6d 6f 64 75 6c 65 6e | 61 6d 65 7b 55 70 64 61 |\modulen|ame{Upda|
|00002830| 74 65 4f 4f 47 4c 7d 20 | 74 6f 20 75 70 64 61 74 |teOOGL} |to updat|
|00002840| 65 20 74 68 65 20 7b 5c | 4f 4f 47 4c 7d 0a 6d 65 |e the {\|OOGL}.me|
|00002850| 73 68 20 69 6e 20 73 68 | 61 72 65 64 20 6d 65 6d |sh in sh|ared mem|
|00002860| 6f 72 79 2e 20 20 55 73 | 65 72 20 69 6e 74 65 72 |ory. Us|er inter|
|00002870| 66 61 63 65 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |face all|ows the |
|00002880| 75 73 65 72 20 74 6f 20 | 63 68 61 6e 67 65 0a 74 |user to |change.t|
|00002890| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 7b 5c 65 6d |he value| of {\em|
|000028a0| 20 64 74 7d 2e 20 54 68 | 65 20 72 65 73 75 6c 74 | dt}. Th|e result|
|000028b0| 69 6e 67 20 64 61 74 61 | 20 61 72 72 61 79 20 61 |ing data| array a|
|000028c0| 6e 64 20 6f 74 68 65 72 | 20 70 61 72 61 6d 65 74 |nd other| paramet|
|000028d0| 65 72 73 0a 61 72 65 20 | 70 61 73 73 65 64 20 74 |ers.are |passed t|
|000028e0| 6f 20 5c 6d 6f 64 75 6c | 65 6e 61 6d 65 7b 55 70 |o \modul|ename{Up|
|000028f0| 64 61 74 65 4f 4f 47 4c | 7d 2e 20 0a 0a 5c 6d 6f |dateOOGL|}. ..\mo|
|00002900| 64 75 6c 65 6e 61 6d 65 | 7b 55 70 64 61 74 65 4f |dulename|{UpdateO|
|00002910| 4f 47 4c 7d 27 73 20 6d | 61 69 6e 20 74 61 73 6b |OGL}'s m|ain task|
|00002920| 20 69 73 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 | is to c|reate a |
|00002930| 4d 65 73 68 20 6f 62 6a | 65 63 74 0a 66 72 6f 6d |Mesh obj|ect.from|
|00002940| 20 74 68 65 20 64 61 74 | 61 20 77 68 69 63 68 20 | the dat|a which |
|00002950| 68 61 73 20 62 65 65 6e | 20 70 61 73 73 65 64 20 |has been| passed |
|00002960| 69 6e 2e 20 20 54 68 69 | 73 20 69 73 20 74 68 65 |in. Thi|s is the|
|00002970| 20 6f 6e 65 20 73 6c 69 | 67 68 74 6c 79 0a 74 72 | one sli|ghtly.tr|
|00002980| 69 63 6b 79 20 73 65 63 | 74 69 6f 6e 20 6f 66 20 |icky sec|tion of |
|00002990| 74 68 65 20 70 72 6f 67 | 72 61 6d 2c 20 73 69 6e |the prog|ram, sin|
|000029a0| 63 65 20 74 68 65 20 70 | 61 72 74 69 63 75 6c 61 |ce the p|articula|
|000029b0| 72 20 66 65 61 74 75 72 | 65 73 20 6f 66 0a 65 61 |r featur|es of.ea|
|000029c0| 63 68 20 73 75 62 63 6c | 61 73 73 20 6d 75 73 74 |ch subcl|ass must|
|000029d0| 20 62 65 20 6b 6e 6f 77 | 6e 20 69 6e 20 6f 72 64 | be know|n in ord|
|000029e0| 65 72 20 74 6f 20 63 72 | 65 61 74 65 20 61 6e 20 |er to cr|eate an |
|000029f0| 69 6e 73 74 61 6e 63 65 | 2e 0a 0a 41 6c 6c 20 74 |instance|...All t|
|00002a00| 68 65 20 43 72 65 61 74 | 65 20 72 6f 75 74 69 6e |he Creat|e routin|
|00002a10| 65 73 20 61 72 65 20 61 | 63 63 65 73 73 65 64 20 |es are a|ccessed |
|00002a20| 74 68 72 6f 75 67 68 20 | 74 68 65 20 67 65 6e 65 |through |the gene|
|00002a30| 72 69 63 20 0a 5c 6d 6f | 64 75 6c 65 6e 61 6d 65 |ric .\mo|dulename|
|00002a40| 7b 47 65 6f 6d 43 72 65 | 61 74 65 7d 20 72 6f 75 |{GeomCre|ate} rou|
|00002a50| 74 69 6e 65 2e 20 20 54 | 68 65 20 66 69 72 73 74 |tine. T|he first|
|00002a60| 20 70 61 72 61 6d 65 74 | 65 72 20 69 73 20 61 6e | paramet|er is an|
|00002a70| 20 61 73 63 69 69 0a 73 | 74 72 69 6e 67 20 69 64 | ascii.s|tring id|
|00002a80| 65 6e 74 69 66 79 69 6e | 67 20 74 68 65 20 73 75 |entifyin|g the su|
|00002a90| 62 63 6c 61 73 73 2c 20 | 69 6e 20 74 68 69 73 20 |bclass, |in this |
|00002aa0| 63 61 73 65 20 22 6d 65 | 73 68 22 2e 20 20 46 72 |case "me|sh". Fr|
|00002ab0| 6f 6d 20 74 68 65 6e 0a | 6f 6e 2c 20 74 68 65 20 |om then.|on, the |
|00002ac0| 43 72 65 61 74 65 20 72 | 6f 75 74 69 6e 65 20 65 |Create r|outine e|
|00002ad0| 78 70 65 63 74 73 20 61 | 20 73 65 71 75 65 6e 63 |xpects a| sequenc|
|00002ae0| 65 20 6f 66 20 6b 65 79 | 73 20 0a 61 63 63 6f 6d |e of key|s .accom|
|00002af0| 70 61 6e 69 65 64 20 77 | 69 74 68 20 6f 70 74 69 |panied w|ith opti|
|00002b00| 6f 6e 61 6c 20 6b 65 79 | 20 76 61 6c 75 65 73 2e |onal key| values.|
|00002b10| 20 20 41 20 63 6f 6d 70 | 6c 65 74 65 20 6c 69 73 | A comp|lete lis|
|00002b20| 74 20 6f 66 20 74 68 65 | 73 65 0a 6b 65 79 73 20 |t of the|se.keys |
|00002b30| 69 73 20 67 69 76 65 6e | 20 69 6e 20 5c 66 69 6c |is given| in \fil|
|00002b40| 65 6e 61 6d 65 7b 47 45 | 4f 4d 2f 69 6e 63 6c 75 |ename{GE|OM/inclu|
|00002b50| 64 65 2f 63 72 65 61 74 | 65 2e 68 7d 2e 20 20 54 |de/creat|e.h}. T|
|00002b60| 68 65 72 65 20 61 72 65 | 20 61 0a 6e 75 6d 62 65 |here are| a.numbe|
|00002b70| 72 20 6f 66 20 67 65 6e | 65 72 69 63 20 73 6f 72 |r of gen|eric sor|
|00002b80| 74 73 20 6f 66 20 6b 65 | 79 73 2c 20 73 75 63 68 |ts of ke|ys, such|
|00002b90| 20 61 73 20 43 52 5c 5f | 4e 4f 43 4f 50 59 20 6f | as CR\_|NOCOPY o|
|00002ba0| 72 20 43 52 5c 5f 50 4f | 49 4e 54 2c 20 77 68 69 |r CR\_PO|INT, whi|
|00002bb0| 63 68 20 61 72 65 20 76 | 61 6c 69 64 0a 66 6f 72 |ch are v|alid.for|
|00002bc0| 20 61 6e 79 20 73 75 62 | 63 6c 61 73 73 2e 20 20 | any sub|class. |
|00002bd0| 43 52 5c 5f 4e 4f 43 4f | 50 59 20 74 65 6c 6c 73 |CR\_NOCO|PY tells|
|00002be0| 20 74 68 65 20 63 72 65 | 61 74 65 20 72 6f 75 74 | the cre|ate rout|
|00002bf0| 69 6e 65 73 20 74 6f 0a | 75 73 65 20 74 68 65 20 |ines to.|use the |
|00002c00| 64 61 74 61 20 79 6f 75 | 20 68 61 76 65 20 70 72 |data you| have pr|
|00002c10| 6f 76 69 64 65 64 20 77 | 69 74 68 6f 75 74 20 63 |ovided w|ithout c|
|00002c20| 6f 70 79 69 6e 67 20 69 | 74 20 6f 76 65 72 20 2d |opying i|t over -|
|00002c30| 2d 20 73 6f 20 77 65 0a | 61 72 65 20 63 61 72 65 |- so we.|are care|
|00002c40| 66 75 6c 20 6e 6f 74 20 | 74 6f 20 64 65 6c 65 74 |ful not |to delet|
|00002c50| 65 20 74 68 65 20 64 61 | 74 61 20 73 74 6f 72 61 |e the da|ta stora|
|00002c60| 67 65 20 77 65 20 61 72 | 65 20 70 61 73 73 69 6e |ge we ar|e passin|
|00002c70| 67 2e 0a 43 52 5c 5f 50 | 4f 49 4e 54 20 69 64 65 |g..CR\_P|OINT ide|
|00002c80| 6e 74 69 66 69 65 73 20 | 61 6e 20 61 72 72 61 79 |ntifies |an array|
|00002c90| 20 6f 66 20 33 2d 64 69 | 6d 65 6e 73 69 6f 6e 61 | of 3-di|mensiona|
|00002ca0| 6c 20 76 65 72 74 69 63 | 65 73 3b 20 43 52 5c 5f |l vertic|es; CR\_|
|00002cb0| 50 4f 49 4e 54 34 0a 64 | 6f 65 73 20 74 68 65 20 |POINT4.d|oes the |
|00002cc0| 73 61 6d 65 20 66 6f 72 | 20 34 2d 64 69 6d 65 6e |same for| 4-dimen|
|00002cd0| 73 69 6f 6e 61 6c 20 76 | 65 72 74 69 63 65 73 2e |sional v|ertices.|
|00002ce0| 0a 0a 4f 74 68 65 72 20 | 6f 66 20 74 68 65 73 65 |..Other |of these|
|00002cf0| 20 6b 65 79 73 2c 20 68 | 6f 77 65 76 65 72 2c 20 | keys, h|owever, |
|00002d00| 61 72 65 20 73 70 65 63 | 69 66 69 63 20 74 6f 0a |are spec|ific to.|
|00002d10| 74 68 65 20 4d 65 73 68 | 20 73 75 62 63 6c 61 73 |the Mesh| subclas|
|00002d20| 73 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |s. For |example,|
|00002d30| 20 43 52 5c 5f 4e 55 20 | 61 6e 64 20 43 52 5c 5f | CR\_NU |and CR\_|
|00002d40| 4e 56 20 73 70 65 63 69 | 66 79 20 74 68 65 0a 64 |NV speci|fy the.d|
|00002d50| 69 6d 65 6e 73 69 6f 6e | 73 20 6f 66 20 74 68 65 |imension|s of the|
|00002d60| 20 6d 65 73 68 2e 20 20 | 4c 61 73 74 20 61 6e 64 | mesh. |Last and|
|00002d70| 20 6d 6f 73 74 20 64 69 | 66 66 69 63 75 6c 74 2c | most di|fficult,|
|00002d80| 20 43 52 5c 5f 46 4c 41 | 47 20 69 64 65 6e 74 69 | CR\_FLA|G identi|
|00002d90| 66 69 65 73 0a 61 20 73 | 65 74 20 6f 66 20 66 6c |fies.a s|et of fl|
|00002da0| 61 67 20 76 61 6c 75 65 | 73 20 77 68 69 63 68 20 |ag value|s which |
|00002db0| 76 61 72 79 20 77 69 74 | 68 20 65 61 63 68 20 73 |vary wit|h each s|
|00002dc0| 75 62 63 6c 61 73 73 20 | 61 6e 64 20 63 61 6e 0a |ubclass |and can.|
|00002dd0| 6f 6e 6c 79 20 62 65 20 | 66 75 6c 6c 79 20 6c 65 |only be |fully le|
|00002de0| 61 72 6e 65 64 20 62 79 | 20 63 6f 6e 73 75 6c 74 |arned by| consult|
|00002df0| 69 6e 67 20 74 68 65 20 | 73 70 65 63 69 66 69 63 |ing the |specific|
|00002e00| 20 73 75 62 63 6c 61 73 | 73 2e 68 20 66 69 6c 65 | subclas|s.h file|
|00002e10| 2e 0a 49 6e 20 74 68 69 | 73 20 63 61 73 65 2c 20 |..In thi|s case, |
|00002e20| 77 65 20 63 6f 6e 73 75 | 6c 74 20 5c 66 69 6c 65 |we consu|lt \file|
|00002e30| 6e 61 6d 65 7b 6d 65 73 | 68 66 6c 61 67 2e 68 7d |name{mes|hflag.h}|
|00002e40| 20 74 6f 20 20 66 69 6e | 64 20 74 68 61 74 0a 77 | to fin|d that.w|
|00002e50| 65 20 6d 75 73 74 20 75 | 73 65 20 74 68 65 20 4d |e must u|se the M|
|00002e60| 45 53 48 5c 5f 5a 20 66 | 6c 61 67 20 20 66 6f 72 |ESH\_Z f|lag for|
|00002e70| 20 6f 75 72 20 64 61 74 | 61 2c 20 73 69 6e 63 65 | our dat|a, since|
|00002e80| 20 77 65 20 61 72 65 6e | 27 74 20 0a 70 72 6f 76 | we aren|'t .prov|
|00002e90| 69 64 69 6e 67 20 65 78 | 70 6c 69 63 69 74 20 28 |iding ex|plicit (|
|00002ea0| 78 2c 79 29 20 64 61 74 | 61 20 77 69 74 68 20 74 |x,y) dat|a with t|
|00002eb0| 68 65 20 7a 2d 76 61 6c | 75 65 73 2e 0a 0a 54 68 |he z-val|ues...Th|
|00002ec0| 65 20 62 65 73 74 20 77 | 61 79 20 74 6f 20 20 62 |e best w|ay to b|
|00002ed0| 65 63 6f 6d 65 20 63 6f | 6d 66 6f 72 74 61 62 6c |ecome co|mfortabl|
|00002ee0| 65 20 77 69 74 68 20 74 | 68 69 73 20 61 73 70 65 |e with t|his aspe|
|00002ef0| 63 74 20 6f 66 20 74 68 | 65 20 0a 43 72 65 61 74 |ct of th|e .Creat|
|00002f00| 65 20 72 6f 75 74 69 6e | 65 73 20 69 73 20 74 6f |e routin|es is to|
|00002f10| 20 65 78 61 6d 69 6e 65 | 20 6f 74 68 65 72 20 65 | examine| other e|
|00002f20| 78 61 6d 70 6c 65 73 20 | 69 6e 20 74 68 65 20 5c |xamples |in the \|
|00002f30| 66 69 6c 65 6e 61 6d 65 | 7b 47 45 4f 4d 2f 73 72 |filename|{GEOM/sr|
|00002f40| 63 2f 62 69 6e 7d 0a 64 | 69 72 65 63 74 6f 72 79 |c/bin}.d|irectory|
|00002f50| 2c 20 61 6e 64 20 65 78 | 70 6c 6f 72 65 20 74 68 |, and ex|plore th|
|00002f60| 65 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 73 20 |e includ|e files |
|00002f70| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |correspo|nding to|
|00002f80| 20 79 6f 75 72 0a 66 61 | 76 6f 72 69 74 65 20 73 | your.fa|vorite s|
|00002f90| 75 62 63 6c 61 73 73 2e | 20 20 0a 0a 5c 6d 6f 64 |ubclass.| ..\mod|
|00002fa0| 75 6c 65 6e 61 6d 65 7b | 47 65 6f 6d 43 72 65 61 |ulename{|GeomCrea|
|00002fb0| 74 65 7d 20 72 65 74 75 | 72 6e 73 20 61 20 70 6f |te} retu|rns a po|
|00002fc0| 69 6e 74 65 72 20 74 6f | 20 61 20 47 65 6f 6d 20 |inter to| a Geom |
|00002fd0| 75 70 6f 6e 20 73 75 63 | 63 65 73 73 66 75 6c 0a |upon suc|cessful.|
|00002fe0| 63 6f 6d 70 6c 65 74 69 | 6f 6e 2e 20 20 49 74 20 |completi|on. It |
|00002ff0| 61 6c 73 6f 20 68 61 70 | 70 65 6e 73 20 74 6f 20 |also hap|pens to |
|00003000| 62 65 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |be a poi|nter to |
|00003010| 61 20 4d 65 73 68 2c 20 | 62 75 74 20 77 65 0a 64 |a Mesh, |but we.d|
|00003020| 6f 6e 27 74 20 63 61 72 | 65 20 61 6e 79 20 6d 6f |on't car|e any mo|
|00003030| 72 65 20 77 68 61 74 20 | 6b 69 6e 64 20 6f 66 20 |re what |kind of |
|00003040| 47 65 6f 6d 20 69 74 20 | 69 73 2e 20 20 0a 0a 54 |Geom it |is. ..T|
|00003050| 68 65 20 66 69 6e 61 6c | 20 73 74 65 70 20 69 73 |he final| step is|
|00003060| 20 74 6f 20 70 75 74 20 | 74 68 69 73 20 6d 65 73 | to put |this mes|
|00003070| 68 20 6f 75 74 20 6f 6e | 74 6f 20 74 68 65 20 70 |h out on|to the p|
|00003080| 69 70 65 2e 20 20 57 65 | 20 64 6f 20 74 68 69 73 |ipe. We| do this|
|00003090| 0a 62 79 20 77 72 61 70 | 70 69 6e 67 20 61 20 63 |.by wrap|ping a c|
|000030a0| 61 6c 6c 20 74 6f 20 5c | 6d 6f 64 75 6c 65 6e 61 |all to \|modulena|
|000030b0| 6d 65 7b 47 65 6f 6d 46 | 53 61 76 65 7d 20 77 69 |me{GeomF|Save} wi|
|000030c0| 74 68 69 6e 20 20 61 20 | 73 69 6d 70 6c 65 0a 63 |thin a |simple.c|
|000030d0| 6f 6d 6d 61 6e 64 20 77 | 68 69 63 68 20 63 6f 6e |ommand w|hich con|
|000030e0| 6e 65 63 74 73 20 74 68 | 69 73 20 67 65 6f 6d 65 |nects th|is geome|
|000030f0| 74 72 79 20 74 6f 20 74 | 68 65 20 61 66 6f 72 65 |try to t|he afore|
|00003100| 2d 6d 65 6e 74 69 6f 6e | 65 64 0a 68 61 6e 64 6c |-mention|ed.handl|
|00003110| 65 20 7b 5c 65 6d 20 65 | 78 68 61 6e 64 6c 65 7d |e {\em e|xhandle}|
|00003120| 2e 20 20 5c 6d 6f 64 75 | 6c 65 6e 61 6d 65 7b 47 |. \modu|lename{G|
|00003130| 65 6f 6d 46 53 61 76 65 | 7d 20 70 72 69 6e 74 73 |eomFSave|} prints|
|00003140| 20 6f 6e 74 6f 0a 74 68 | 65 20 67 69 76 65 6e 20 | onto.th|e given |
|00003150| 66 69 6c 65 20 73 74 72 | 65 61 6d 2c 20 69 6e 20 |file str|eam, in |
|00003160| 74 68 69 73 20 63 61 73 | 65 2c 20 73 74 61 6e 64 |this cas|e, stand|
|00003170| 61 72 64 20 6f 75 74 70 | 75 74 2c 0a 74 68 65 20 |ard outp|ut,.the |
|00003180| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 47 65 6f |value of| the Geo|
|00003190| 6d 2e 20 20 54 68 65 6e | 2c 20 77 68 65 6e 20 5c |m. Then|, when \|
|000031a0| 70 72 6f 67 6e 61 6d 65 | 7b 67 65 6f 6d 76 69 65 |progname|{geomvie|
|000031b0| 77 7d 20 72 65 61 64 73 | 0a 74 68 69 73 20 73 74 |w} reads|.this st|
|000031c0| 72 65 61 6d 2c 20 69 74 | 20 77 69 6c 6c 20 72 65 |ream, it| will re|
|000031d0| 64 65 66 69 6e 65 20 7b | 5c 65 6d 20 65 78 68 61 |define {|\em exha|
|000031e0| 6e 64 6c 65 7d 20 74 6f | 20 72 65 70 6c 61 63 65 |ndle} to| replace|
|000031f0| 20 61 6e 79 0a 6f 6c 64 | 20 64 65 66 69 6e 69 74 | any.old| definit|
|00003200| 69 6f 6e 73 2e 0a 0a 5c | 73 65 63 74 69 6f 6e 7b |ions...\|section{|
|00003210| 52 65 6d 61 72 6b 73 7d | 0a 0a 49 74 20 69 73 20 |Remarks}|..It is |
|00003220| 61 20 67 6f 6f 64 20 69 | 64 65 61 20 74 6f 20 75 |a good i|dea to u|
|00003230| 73 65 20 74 68 65 20 5c | 6d 6f 64 75 6c 65 6e 61 |se the \|modulena|
|00003240| 6d 65 7b 4f 4f 47 4c 4e | 65 77 7d 20 72 6f 75 74 |me{OOGLN|ew} rout|
|00003250| 69 6e 65 73 20 61 6e 64 | 0a 74 68 65 69 72 20 76 |ines and|.their v|
|00003260| 61 72 69 61 6e 74 73 20 | 66 6f 72 20 61 6c 6c 6f |ariants |for allo|
|00003270| 63 61 74 69 6e 67 20 73 | 74 6f 72 61 67 65 20 61 |cating s|torage a|
|00003280| 6e 64 20 5c 6d 6f 64 75 | 6c 65 6e 61 6d 65 7b 4f |nd \modu|lename{O|
|00003290| 4f 47 4c 46 72 65 65 7d | 20 66 6f 72 0a 66 72 65 |OGLFree}| for.fre|
|000032a0| 65 69 6e 67 20 69 74 2e | 20 20 53 65 65 20 5c 66 |eing it.| See \f|
|000032b0| 69 6c 65 6e 61 6d 65 7b | 47 45 4f 4d 2f 69 6e 63 |ilename{|GEOM/inc|
|000032c0| 6c 75 64 65 2f 6f 6f 67 | 6c 75 74 69 6c 2e 68 7d |lude/oog|lutil.h}|
|000032d0| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 2e 0a 0a 41 | for det|ails...A|
|000032e0| 20 67 6f 6f 64 20 77 61 | 79 20 74 6f 20 64 65 62 | good wa|y to deb|
|000032f0| 75 67 20 65 78 74 65 72 | 6e 61 6c 20 6d 6f 64 75 |ug exter|nal modu|
|00003300| 6c 65 73 20 69 73 20 74 | 6f 20 72 75 6e 20 74 68 |les is t|o run th|
|00003310| 65 6d 20 73 74 61 6e 64 | 2d 61 6c 6f 6e 65 0a 66 |em stand|-alone.f|
|00003320| 69 72 73 74 2c 20 61 6e | 64 20 65 78 61 6d 69 6e |irst, an|d examin|
|00003330| 65 20 74 68 65 20 61 73 | 63 69 69 20 73 74 72 65 |e the as|cii stre|
|00003340| 61 6d 20 77 68 69 63 68 | 20 74 68 65 79 20 70 72 |am which| they pr|
|00003350| 6f 64 75 63 65 20 74 6f | 0a 63 68 65 63 6b 20 66 |oduce to|.check f|
|00003360| 6f 72 20 6f 62 76 69 6f | 75 73 20 70 72 6f 62 6c |or obvio|us probl|
|00003370| 65 6d 73 2e 20 20 4f 72 | 20 63 61 74 63 68 20 69 |ems. Or| catch i|
|00003380| 74 20 74 68 69 73 20 73 | 74 72 65 61 6d 20 69 6e |t this s|tream in|
|00003390| 20 61 20 66 69 6c 65 2c | 20 65 64 69 74 20 74 68 | a file,| edit th|
|000033a0| 65 0a 66 69 6c 65 2c 20 | 61 6e 64 20 74 68 65 6e |e.file, |and then|
|000033b0| 20 72 65 61 64 20 74 68 | 61 74 20 69 6e 74 6f 20 | read th|at into |
|000033c0| 5c 70 72 6f 67 6e 61 6d | 65 7b 67 65 6f 6d 76 69 |\prognam|e{geomvi|
|000033d0| 65 77 7d 20 74 6f 20 73 | 65 65 20 69 66 0a 69 74 |ew} to s|ee if.it|
|000033e0| 27 73 20 6d 61 6b 69 6e | 67 20 72 65 61 73 6f 6e |'s makin|g reason|
|000033f0| 61 62 6c 65 20 70 69 63 | 74 75 72 65 73 2e 0a 0a |able pic|tures...|
|00003400| 54 68 65 20 4d 61 6b 65 | 66 69 6c 65 20 6d 65 63 |The Make|file mec|
|00003410| 68 61 6e 69 73 6d 20 69 | 6c 6c 75 73 74 72 61 74 |hanism i|llustrat|
|00003420| 65 64 20 69 6e 20 74 68 | 69 73 20 65 78 61 6d 70 |ed in th|is examp|
|00003430| 6c 65 20 69 73 20 71 75 | 69 74 65 20 63 6f 6d 70 |le is qu|ite comp|
|00003440| 6c 65 78 2e 0a 54 68 65 | 20 62 61 73 69 63 20 73 |lex..The| basic s|
|00003450| 74 72 75 63 74 75 72 65 | 20 69 73 20 74 68 61 74 |tructure| is that|
|00003460| 20 74 68 65 20 73 6f 75 | 72 63 65 20 63 6f 64 65 | the sou|rce code|
|00003470| 20 65 78 69 73 74 73 20 | 61 74 20 74 68 65 0a 5c | exists |at the.\|
|00003480| 66 69 6c 65 6e 61 6d 65 | 7b 47 45 4f 4d 2f 73 72 |filename|{GEOM/sr|
|00003490| 63 2f 62 69 6e 7d 20 6c | 65 76 65 6c 2c 20 62 75 |c/bin} l|evel, bu|
|000034a0| 74 20 74 68 65 72 65 20 | 61 72 65 20 6d 75 6c 74 |t there |are mult|
|000034b0| 69 70 6c 65 20 6f 62 6a | 65 63 74 0a 64 69 72 65 |iple obj|ect.dire|
|000034c0| 63 74 6f 72 69 65 73 20 | 63 6f 72 72 65 73 70 6f |ctories |correspo|
|000034d0| 6e 64 69 6e 67 20 74 6f | 20 70 6f 73 73 69 62 6c |nding to| possibl|
|000034e0| 79 20 64 69 66 66 65 72 | 65 6e 74 20 61 72 63 68 |y differ|ent arch|
|000034f0| 69 74 65 63 74 75 72 65 | 73 20 28 69 6e 20 6f 75 |itecture|s (in ou|
|00003500| 72 0a 63 61 73 65 20 5c | 66 69 6c 65 6e 61 6d 65 |r.case \|filename|
|00003510| 7b 4f 2e 73 67 69 7d 20 | 69 73 20 74 68 65 20 6f |{O.sgi} |is the o|
|00003520| 6e 65 20 6f 66 20 69 6e | 74 65 72 65 73 74 29 2e |ne of in|terest).|
|00003530| 20 20 54 68 65 20 70 61 | 72 65 6e 74 20 4d 61 6b | The pa|rent Mak|
|00003540| 65 66 69 6c 65 0a 74 68 | 65 6e 20 64 65 73 63 65 |efile.th|en desce|
|00003550| 6e 64 73 20 69 6e 74 6f | 20 74 68 61 74 20 64 69 |nds into| that di|
|00003560| 72 65 63 74 6f 72 79 20 | 61 6e 64 20 64 6f 65 73 |rectory |and does|
|00003570| 20 74 68 65 20 68 65 61 | 72 74 20 6f 66 20 74 68 | the hea|rt of th|
|00003580| 65 20 6d 61 6b 65 2e 20 | 20 41 6c 6c 0a 74 68 65 |e make. | All.the|
|00003590| 20 4d 61 6b 65 66 69 6c | 65 73 20 69 6e 63 6c 75 | Makefil|es inclu|
|000035a0| 64 65 20 67 6c 6f 62 61 | 6c 20 6d 61 6b 65 66 69 |de globa|l makefi|
|000035b0| 6c 65 73 20 66 72 6f 6d | 20 5c 66 69 6c 65 6e 61 |les from| \filena|
|000035c0| 6d 65 7b 47 45 4f 4d 2f | 6d 61 6b 65 66 69 6c 65 |me{GEOM/|makefile|
|000035d0| 73 7d 2c 0a 77 68 69 63 | 68 20 64 65 66 69 6e 65 |s},.whic|h define|
|000035e0| 20 6d 61 6e 79 20 6d 61 | 63 72 6f 73 20 74 68 61 | many ma|cros tha|
|000035f0| 74 20 79 6f 75 20 64 6f | 6e 27 74 20 6e 65 65 64 |t you do|n't need|
|00003600| 20 74 6f 20 75 6e 64 65 | 72 73 74 61 6e 64 2e 20 | to unde|rstand. |
|00003610| 54 68 65 0a 69 6d 70 6f | 72 74 61 6e 74 20 6f 6e |The.impo|rtant on|
|00003620| 65 73 20 61 72 65 20 65 | 78 70 6c 61 69 6e 65 64 |es are e|xplained|
|00003630| 20 62 65 6c 6f 77 2e 20 | 20 54 68 65 72 65 20 69 | below. | There i|
|00003640| 73 20 61 20 66 69 6c 65 | 20 63 61 6c 6c 65 64 0a |s a file| called.|
|00003650| 5c 66 69 6c 65 6e 61 6d | 65 7b 4d 61 6b 65 64 65 |\filenam|e{Makede|
|00003660| 66 73 7d 20 69 6e 20 74 | 68 65 20 70 61 72 65 6e |fs} in t|he paren|
|00003670| 74 20 64 69 72 65 63 74 | 6f 72 79 20 74 68 61 74 |t direct|ory that|
|00003680| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 6d 61 63 | defines| the mac|
|00003690| 72 6f 73 0a 53 52 43 53 | 2c 20 4f 42 4a 53 2c 20 |ros.SRCS|, OBJS, |
|000036a0| 61 6e 64 20 54 41 52 47 | 45 54 2c 20 77 68 69 63 |and TARG|ET, whic|
|000036b0| 68 20 79 6f 75 20 77 69 | 6c 6c 20 6e 65 65 64 20 |h you wi|ll need |
|000036c0| 74 6f 20 73 65 74 20 74 | 6f 20 74 68 65 20 61 70 |to set t|o the ap|
|000036d0| 70 72 6f 70 72 69 61 74 | 65 0a 66 69 6c 65 6e 61 |propriat|e.filena|
|000036e0| 6d 65 73 2e 20 28 54 68 | 65 20 44 49 53 54 46 49 |mes. (Th|e DISTFI|
|000036f0| 4c 45 53 20 6d 61 63 72 | 6f 20 63 61 6e 20 62 65 |LES macr|o can be|
|00003700| 20 73 61 66 65 6c 79 20 | 69 67 6e 6f 72 65 64 2e | safely |ignored.|
|00003710| 29 20 54 68 65 20 6f 6e | 6c 79 0a 63 68 61 6e 67 |) The on|ly.chang|
|00003720| 65 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 6e 65 65 |e you sh|ould nee|
|00003730| 64 20 74 6f 20 6d 61 6b | 65 20 74 6f 20 74 68 65 |d to mak|e to the|
|00003740| 20 5c 66 69 6c 65 6e 61 | 6d 65 7b 4d 61 6b 65 66 | \filena|me{Makef|
|00003750| 69 6c 65 7d 20 69 6e 20 | 74 68 65 0a 70 61 72 65 |ile} in |the.pare|
|00003760| 6e 74 20 64 69 72 65 63 | 74 6f 72 79 20 69 73 20 |nt direc|tory is |
|00003770| 74 6f 20 73 65 74 20 74 | 68 65 20 47 45 4f 4d 20 |to set t|he GEOM |
|00003780| 76 61 72 69 61 62 6c 65 | 20 74 6f 20 74 68 65 20 |variable| to the |
|00003790| 61 70 70 72 6f 70 72 69 | 61 74 65 0a 64 69 72 65 |appropri|ate.dire|
|000037a0| 63 74 6f 72 79 2c 20 77 | 68 69 63 68 20 69 73 20 |ctory, w|hich is |
|000037b0| 74 68 65 20 74 6f 70 20 | 6f 66 20 74 68 65 20 67 |the top |of the g|
|000037c0| 65 6f 6d 76 69 65 77 20 | 74 72 65 65 2e 20 54 68 |eomview |tree. Th|
|000037d0| 69 73 20 63 68 61 6e 67 | 65 20 61 6c 73 6f 0a 73 |is chang|e also.s|
|000037e0| 68 6f 75 6c 64 20 62 65 | 20 6d 61 64 65 20 74 6f |hould be| made to|
|000037f0| 20 5c 66 69 6c 65 6e 61 | 6d 65 7b 4f 2e 73 67 69 | \filena|me{O.sgi|
|00003800| 2f 4d 61 6b 65 66 69 6c | 65 7d 2c 20 77 68 69 63 |/Makefil|e}, whic|
|00003810| 68 20 79 6f 75 20 63 61 | 6e 20 74 68 65 6e 20 6d |h you ca|n then m|
|00003820| 6f 64 69 66 79 0a 61 73 | 20 61 70 70 72 6f 70 72 |odify.as| appropr|
|00003830| 69 61 74 65 20 66 6f 72 | 20 79 6f 75 72 20 61 70 |iate for| your ap|
|00003840| 70 6c 69 63 61 74 69 6f | 6e 2e 20 52 65 6d 65 6d |plicatio|n. Remem|
|00003850| 62 65 72 20 74 68 61 74 | 20 61 66 74 65 72 20 6d |ber that| after m|
|00003860| 6f 64 69 66 79 69 6e 67 | 20 61 6e 79 0a 6f 66 20 |odifying| any.of |
|00003870| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 73 20 79 6f |the make|files yo|
|00003880| 75 20 73 68 6f 75 6c 64 | 20 74 79 70 65 20 0a 5c |u should| type .\|
|00003890| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 20 |begin{ve|rbatim} |
|000038a0| 0a 25 20 6d 61 6b 65 20 | 64 65 70 65 6e 64 0a 5c |.% make |depend.\|
|000038b0| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 45 6e |end{verb|atim}.En|
|000038c0| 6a 6f 79 2e 0a 0a 5c 73 | 65 63 74 69 6f 6e 7b 4c |joy...\s|ection{L|
|000038d0| 69 73 74 69 6e 67 73 7d | 0a 0a 54 68 65 73 65 20 |istings}|..These |
|000038e0| 61 72 65 20 74 68 65 20 | 6c 69 73 74 69 6e 67 73 |are the |listings|
|000038f0| 20 6f 66 20 61 6c 6c 20 | 74 68 65 20 64 65 6d 6f | of all |the demo|
|00003900| 20 63 6f 64 65 20 6d 65 | 6e 74 69 6f 6e 65 64 20 | code me|ntioned |
|00003910| 69 6e 20 74 68 69 73 20 | 61 72 74 69 63 6c 65 2e |in this |article.|
|00003920| 0a 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 65 78 |..\subse|ction{ex|
|00003930| 61 6d 70 6c 65 7d 0a 5c | 6c 61 62 65 6c 7b 45 78 |ample}.\|label{Ex|
|00003940| 61 6d 70 6c 65 4c 69 73 | 74 69 6e 67 73 7d 0a 5c |ampleLis|tings}.\|
|00003950| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 7b 46 69 |subsubse|ction{Fi|
|00003960| 6c 65 3a 20 7b 5c 74 74 | 20 6d 61 69 6e 2e 63 7d |le: {\tt| main.c}|
|00003970| 7d 0a 0a 5c 63 70 72 6f | 67 66 69 6c 65 7b 6d 61 |}..\cpro|gfile{ma|
|00003980| 69 6e 2e 63 7d 0a 0a 5c | 73 75 62 73 75 62 73 65 |in.c}..\|subsubse|
|00003990| 63 74 69 6f 6e 7b 46 69 | 6c 65 3a 20 7b 5c 74 74 |ction{Fi|le: {\tt|
|000039a0| 20 6f 6f 67 6c 2e 63 7d | 7d 0a 0a 5c 63 70 72 6f | oogl.c}|}..\cpro|
|000039b0| 67 66 69 6c 65 7b 6f 6f | 67 6c 2e 63 7d 0a 0a 5c |gfile{oo|gl.c}..\|
|000039c0| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 7b 46 69 |subsubse|ction{Fi|
|000039d0| 6c 65 3a 20 7b 5c 74 74 | 20 4d 61 6b 65 64 65 66 |le: {\tt| Makedef|
|000039e0| 73 7d 7d 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |s}}.\beg|in{verba|
|000039f0| 74 69 6d 7d 0a 53 52 43 | 53 20 3d 20 6d 61 69 6e |tim}.SRC|S = main|
|00003a00| 2e 63 20 6f 6f 67 6c 2e | 63 20 63 61 6c 6c 62 61 |.c oogl.|c callba|
|00003a10| 63 6b 73 2e 63 0a 4f 42 | 4a 53 20 3d 20 6d 61 69 |cks.c.OB|JS = mai|
|00003a20| 6e 2e 6f 20 6f 6f 67 6c | 2e 6f 20 63 61 6c 6c 62 |n.o oogl|.o callb|
|00003a30| 61 63 6b 73 2e 6f 0a 54 | 41 52 47 45 54 53 20 3d |acks.o.T|ARGETS =|
|00003a40| 20 65 78 61 6d 70 6c 65 | 0a 44 49 53 54 46 49 4c | example|.DISTFIL|
|00003a50| 45 53 20 3d 20 70 61 6e | 65 6c 2e 66 64 20 70 61 |ES = pan|el.fd pa|
|00003a60| 6e 65 6c 2e 63 20 74 75 | 74 6f 72 69 61 6c 2e 74 |nel.c tu|torial.t|
|00003a70| 65 78 20 74 75 74 6f 72 | 69 61 6c 2e 70 73 20 52 |ex tutor|ial.ps R|
|00003a80| 45 41 44 4d 45 0a 5c 65 | 6e 64 7b 76 65 72 62 61 |EADME.\e|nd{verba|
|00003a90| 74 69 6d 7d 0a 0a 5c 73 | 75 62 73 75 62 73 65 63 |tim}..\s|ubsubsec|
|00003aa0| 74 69 6f 6e 7b 46 69 6c | 65 3a 20 7b 5c 74 74 20 |tion{Fil|e: {\tt |
|00003ab0| 4d 61 6b 65 66 69 6c 65 | 7d 7d 0a 5c 62 65 67 69 |Makefile|}}.\begi|
|00003ac0| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 47 45 4f 4d |n{verbat|im}.GEOM|
|00003ad0| 20 3d 20 2e 2e 2f 2e 2e | 2f 2e 2e 0a 69 6e 63 6c | = ../..|/...incl|
|00003ae0| 75 64 65 20 24 7b 47 45 | 4f 4d 7d 2f 6d 61 6b 65 |ude ${GE|OM}/make|
|00003af0| 66 69 6c 65 73 2f 4d 61 | 6b 65 64 65 66 73 2e 67 |files/Ma|kedefs.g|
|00003b00| 6c 6f 62 61 6c 0a 69 6e | 63 6c 75 64 65 20 4d 61 |lobal.in|clude Ma|
|00003b10| 6b 65 64 65 66 73 0a 69 | 6e 63 6c 75 64 65 20 24 |kedefs.i|nclude $|
|00003b20| 7b 47 45 4f 4d 7d 2f 6d | 61 6b 65 66 69 6c 65 73 |{GEOM}/m|akefiles|
|00003b30| 2f 4d 61 6b 65 72 75 6c | 65 73 2e 73 72 63 0a 5c |/Makerul|es.src.\|
|00003b40| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 0a 5c |end{verb|atim}..\|
|00003b50| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 7b 46 69 |subsubse|ction{Fi|
|00003b60| 6c 65 3a 20 7b 5c 74 74 | 20 4f 2e 73 67 69 2f 4d |le: {\tt| O.sgi/M|
|00003b70| 61 6b 65 66 69 6c 65 7d | 7d 0a 5c 62 65 67 69 6e |akefile}|}.\begin|
|00003b80| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 47 45 4f 4d 20 |{verbati|m}.GEOM |
|00003b90| 3d 20 2e 2e 2f 2e 2e 2f | 2e 2e 2f 2e 2e 0a 69 6e |= ../../|../...in|
|00003ba0| 63 6c 75 64 65 20 24 7b | 47 45 4f 4d 7d 2f 6d 61 |clude ${|GEOM}/ma|
|00003bb0| 6b 65 66 69 6c 65 73 2f | 4d 61 6b 65 64 65 66 73 |kefiles/|Makedefs|
|00003bc0| 2e 67 6c 6f 62 61 6c 0a | 69 6e 63 6c 75 64 65 20 |.global.|include |
|00003bd0| 2e 2e 2f 4d 61 6b 65 64 | 65 66 73 0a 69 6e 63 6c |../Maked|efs.incl|
|00003be0| 75 64 65 20 24 7b 47 45 | 4f 4d 7d 2f 6d 61 6b 65 |ude ${GE|OM}/make|
|00003bf0| 66 69 6c 65 73 2f 4d 61 | 6b 65 72 75 6c 65 73 2e |files/Ma|kerules.|
|00003c00| 6f 62 6a 0a 0a 46 4f 52 | 4d 53 4c 49 42 53 20 3d |obj..FOR|MSLIBS =|
|00003c10| 20 2d 6c 66 6f 72 6d 73 | 20 2d 6c 66 6d 5f 73 0a | -lforms| -lfm_s.|
|00003c20| 41 4c 4c 4c 49 42 53 20 | 3d 20 24 7b 41 4c 4c 4f |ALLLIBS |= ${ALLO|
|00003c30| 4f 47 4c 4c 49 42 53 7d | 20 24 7b 46 4f 52 4d 53 |OGLLIBS}| ${FORMS|
|00003c40| 4c 49 42 53 7d 20 2d 6c | 67 6c 5f 73 20 2d 6c 6d |LIBS} -l|gl_s -lm|
|00003c50| 0a 0a 65 78 61 6d 70 6c | 65 3a 09 24 7b 4f 42 4a |..exampl|e:.${OBJ|
|00003c60| 53 7d 20 0a 09 72 6d 20 | 2d 66 20 65 78 61 6d 70 |S} ..rm |-f examp|
|00003c70| 6c 65 20 2e 2e 2f 65 78 | 61 6d 70 6c 65 0a 09 63 |le ../ex|ample..c|
|00003c80| 63 20 24 7b 43 46 4c 41 | 47 53 7d 20 24 7b 4f 42 |c ${CFLA|GS} ${OB|
|00003c90| 4a 53 7d 20 20 24 7b 41 | 4c 4c 4c 49 42 53 7d 20 |JS} ${A|LLLIBS} |
|00003ca0| 2d 6f 20 65 78 61 6d 70 | 6c 65 0a 09 6c 6e 20 65 |-o examp|le..ln e|
|00003cb0| 78 61 6d 70 6c 65 20 2e | 2e 0a 0a 74 75 74 6f 72 |xample .|...tutor|
|00003cc0| 69 61 6c 2e 64 76 69 3a | 09 74 75 74 6f 72 69 61 |ial.dvi:|.tutoria|
|00003cd0| 6c 2e 74 65 78 0a 09 6c | 61 74 65 78 20 74 75 74 |l.tex..l|atex tut|
|00003ce0| 6f 72 69 61 6c 0a 0a 69 | 6e 73 74 61 6c 6c 3a 09 |orial..i|nstall:.|
|00003cf0| 69 6e 73 74 61 6c 6c 5f | 62 69 6e 0a 0a 69 6e 73 |install_|bin..ins|
|00003d00| 74 61 6c 6c 5f 62 69 6e | 3a 09 65 78 61 6d 70 6c |tall_bin|:.exampl|
|00003d10| 65 0a 09 24 7b 49 4e 53 | 54 41 4c 4c 7d 20 2d 4f |e..${INS|TALL} -O|
|00003d20| 20 2d 76 20 2d 46 20 24 | 7b 47 45 4f 4d 7d 2f 62 | -v -F $|{GEOM}/b|
|00003d30| 69 6e 2f 24 7b 4d 41 43 | 48 54 59 50 45 7d 20 65 |in/${MAC|HTYPE} e|
|00003d40| 78 61 6d 70 6c 65 0a 09 | 73 74 72 69 70 20 24 7b |xample..|strip ${|
|00003d50| 47 45 4f 4d 7d 2f 62 69 | 6e 2f 24 7b 4d 41 43 48 |GEOM}/bi|n/${MACH|
|00003d60| 54 59 50 45 7d 2f 65 78 | 61 6d 70 6c 65 0a 09 63 |TYPE}/ex|ample..c|
|00003d70| 68 6d 6f 64 20 35 35 35 | 20 24 7b 47 45 4f 4d 7d |hmod 555| ${GEOM}|
|00003d80| 2f 62 69 6e 2f 24 7b 4d | 41 43 48 54 59 50 45 7d |/bin/${M|ACHTYPE}|
|00003d90| 2f 65 78 61 6d 70 6c 65 | 0a 5c 65 6e 64 7b 76 65 |/example|.\end{ve|
|00003da0| 72 62 61 74 69 6d 7d 0a | 0a 5c 65 6e 64 7b 64 6f |rbatim}.|.\end{do|
|00003db0| 63 75 6d 65 6e 74 7d 0a | 0a 0a |cument}.|.. |
+--------+-------------------------+-------------------------+--------+--------+